Node.js · Memory · Senior · Best Practice
In-process caches — safe patterns?
Short Interview Answer
Bounded LRU with TTL, memory budgets, and metrics; avoid unbounded Maps.
Detailed Explanation
Per-instance caches duplicate data horizontally. Consider Redis for shared cache. Stampede protection.