18Where does Redis actually earn its keep in production, and which of its features disappoint teams?▼mediumNewSwiggyRazorpayLinkedIn○ sign inSessions, locks and pub/sub are three very different contracts with the same server. Knowing which guarantees each one lacks is the difference between a cache and an outage.Open full answer →
34Redis latency spikes for a few hundred milliseconds every couple of minutes, right around each background save. What is your hypothesis?▼medium★ EssentialNewPhonePeFlipkartRazorpay◆ premiumSpikes that march in step with BGSAVE are a page-size story, not a network story. Check actual huge-page usage, fork duration and copy-on-write pressure on the deployed kernel.Open full answer →
08Design rate limiting for a public API: what algorithm, where does it live, and what happens when the limiter itself fails?▼hard★ EssentialNewStripeCloudflareDatadogunlockedEveryone names token bucket. The scored part is the rest: drift between nodes, the 429 contract with clients, and whether your quota service should fail open or closed.Open full answer →
09Design caching for a product catalog read 50k times a second. How do you handle invalidation, and what happens when a hot key expires?▼hardNewFlipkartAmazon & AWSSwiggyunlockedThe catalog is the easy half. The scored half is stampede dynamics: one hot key expiring can multiply origin load by a thousand in a second, and there are three distinct fixes.Open full answer →
15Design a real-time leaderboard for a mobile game with ten million daily players.▼easyNewFlipkartPhonePeSwiggy○ sign inThe vocabulary question hiding real depth: which primitive replaces ORDER BY, why sharding by player is wrong, and what a 45,000 updates-per-second storm actually costs.Open full answer →
22Design the session store for fifty million daily users. Sticky sessions or stateless tokens, and who expires expired sessions?▼mediumNewAmazon & AWSFlipkartPhonePe◆ premiumSize stored sessions from expiry and creation rates, then decide how quickly logout must take effect and what failover may forget.Open full answer →