Q1. What is the CAP theorem and how does it guide decisions?
A distributed store can guarantee only two of three during a network partition: Consistency (every read sees the latest write), Availability (every request gets a non-err...
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 (7 available).
A distributed store can guarantee only two of three during a network partition: Consistency (every read sees the latest write), Availability (every request gets a non-err...
In cache-aside the application checks the cache first. On a miss it reads from the database, writes the value into the cache with a TTL, and returns it. On writes, the co...
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...
Write concern controls how many nodes must acknowledge a write before it counts as successful. w:1 means the primary acknowledged it; w:"majority" means a majority of rep...
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...
CAP states that during a network partition a distributed system must choose between consistency (every read sees the latest write) and availability (every request gets a ...
Two-phase commit is rarely used in microservices because it needs a coordinating transaction manager, holds locks across services, blocks on coordinator failure and hurts...
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.