Q1. Explain caching strategies and common failure modes.
Strategies: - Cache-aside (lazy loading): app checks cache, on miss reads DB and populates. Most common. - Read-through: cache library fetches on miss. - Write-through: w...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (4 available).
Strategies: - Cache-aside (lazy loading): app checks cache, on miss reads DB and populates. Most common. - Read-through: cache library fetches on miss. - Write-through: w...
- Write-through: write to the cache and the database in the same operation, synchronously. The cache stays fresh and reads are fast, but writes are slower and every write...
Invalidation is the hardest part of caching. Options, often combined: - TTL expiry: every entry has a lifetime; simple and self-healing, but data can be stale until it ex...
Perfect consistency is not achievable without giving up caching; aim for bounded staleness and correct behavior. Practical rules: - On write, commit to the database first...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.