← 💻 Coding & Engineering Craft
Core
Caching and Eviction
A cache is bounded memory in front of expensive work, so the real design question is what to throw away when it fills. LRU evicts the least recently used entry and is the default; it is built from a hash map plus a doubly linked list to get O(1) get and put. TTL adds time-based expiry. Picking and implementing the right eviction policy is one of the most common practical FDE coding screens.
a free account unlocks the core curriculum tier · no card
RELATED CONCEPTS
PRACTICE THIS IN REAL QUESTIONS
System Design & Production EngineeringWhat's the difference between at-least-once and exactly-once delivery, and why should an FDE care?→System Design & Production EngineeringA Python service starts double-processing messages under load. Why does this happen, and how do you fix it?→System Design & Production EngineeringA customer's Next.js site has a 3-second TTFB. Diagnose it and walk me through fixes, and how you'd prove each one worked.→LLM & GenAI FundamentalsHow does prompt caching work, and when does it actually pay off?→System Design & Production EngineeringDecompose: predict flight delays, and survive the interviewer changing the rules every five minutes.→LLM & GenAI FundamentalsThe customer's LLM bill is unsustainable. Cut costs 10x without destroying quality. Walk me through it.→
