All fields

“Caching with Redis” in Information Technology

24 questions across 3 technologies.

Information Technology

24 questions in 3 technologies

#QuestionTechnologyTopicLevel
1How would you implement a simple rate limiter using Redis's INCR command with expiration? Node.js › Caching with RedisNode.jsCaching with RedisIntermediate
2How do you connect a Node.js application to Redis using the official node-redis client? Node.js › Caching with RedisNode.jsCaching with RedisBeginner
3What Redis data structures beyond simple string values are useful for a Node.js application, and what are they typically used for? Node.js › Caching with RedisNode.jsCaching with RedisIntermediate
4What is Redis Pub/Sub, and how would a Node.js application use it to broadcast real-time events across multiple server instances? Node.js › Caching with RedisNode.jsCaching with RedisIntermediate
5How would you implement a distributed lock using Redis to coordinate access to a shared resource across multiple Node.js instances? Node.js › Caching with RedisNode.jsCaching with RedisAdvanced
6How does Redis's data structure support (beyond simple key-value) enable caching patterns not possible with IMemoryCache? .NET › Caching (In-Memory, Distributed & Redis).NETCaching (In-Memory, Distributed & Redis)Advanced
7How would you decide between Redis and Memcached for a large scale application with a purely simple, high volume string caching requirement and no need for advanced features? Redis › Redis vs MemcachedRedisRedis vs MemcachedAdvanced
8How do you configure and use Redis as a distributed cache in ASP.NET Core with StackExchange.Redis? .NET › Caching (In-Memory, Distributed & Redis).NETCaching (In-Memory, Distributed & Redis)Intermediate
9What does the GetOrCreateAsync pattern accomplish when working with IMemoryCache, and why is it preferred over separate TryGetValue/Set calls? .NET › Caching (In-Memory, Distributed & Redis).NETCaching (In-Memory, Distributed & Redis)Beginner
10What is the cache aside pattern, and how does it work with Redis? Redis › Caching PatternsRedisCaching PatternsBeginner
11Does Memcached support data persistence the way Redis does with RDB and AOF? Redis › Redis vs MemcachedRedisRedis vs MemcachedBeginner
12What is the difference between in-memory caching (like a Map or node-cache) and a distributed cache (like Redis)? Node.js › CachingNode.jsCachingIntermediate
13What is Redis's EXPIRE and how do TTL-based keys interact with Redis's own memory eviction policies under memory pressure? Node.js › CachingNode.jsCachingAdvanced
14What is multi-tier caching (combining an in-memory L1 cache with a distributed L2 cache), and what problem does it solve? Node.js › CachingNode.jsCachingAdvanced
15How do you set an expiration time on a Redis key so it automatically gets deleted after a certain period? Redis › Expiration & EvictionRedisExpiration & EvictionBeginner
16How would you prevent a cache stampede, where many requests simultaneously try to regenerate the same expired cache entry at once? Redis › Caching PatternsRedisCaching PatternsAdvanced
17How does BullMQ (built on Redis) implement a job queue in Node.js, and what are its core building blocks? Node.js › Background Jobs & QueuesNode.jsBackground Jobs & QueuesIntermediate
18What are the trade-offs of using an in-memory job queue (like a simple array-based queue) versus a persistent, Redis-backed queue? Node.js › Background Jobs & QueuesNode.jsBackground Jobs & QueuesIntermediate
19How does Docker Compose simplify running a Node.js application alongside its dependencies (like a database and Redis) during local development? Node.js › Docker & Containerization for Node.jsNode.jsDocker & Containerization for Node.jsAdvanced
20How does token revocation work with stateless JWTs, given they can't simply be 'deleted' server-side once issued? .NET › Authentication & Authorization (Identity, JWT, OAuth).NETAuthentication & Authorization (Identity, JWT, OAuth)Advanced
21How does session-based authentication work in a Node.js/Express application, and what does the session store need to handle? Node.js › Authentication & AuthorizationNode.jsAuthentication & AuthorizationIntermediate
22What is job concurrency in a worker process, and how do you configure it safely in BullMQ? Node.js › Background Jobs & QueuesNode.jsBackground Jobs & QueuesIntermediate
23What happens to in-memory state (like an in-memory cache) when using the Node.js cluster module, and how do you handle this correctly? Node.js › Clustering & Worker ThreadsNode.jsClustering & Worker ThreadsAdvanced
24How would you implement rate limiting or throttling for outgoing notifications to avoid overwhelming users or violating a provider's sending limits? Node.js › Email & NotificationsNode.jsEmail & NotificationsAdvanced