All Questions
Cap Theorem medium

Service A calls Service B. Service B is down. A returns a fallback (cached) response. This choice favors:

  1. A Availability (AP) over Consistency, prioritizing an immediate response over perfect real-time data accuracy.
  2. B Consistency (CP) over Availability, ensuring that the user only sees data that is proven to be 100% correct.
  3. C Partition Tolerance (P) over Latency, favoring a slow but correct response over an immediate stale one.
  4. D Security over Speed, prioritizing the cryptographic verification of the response before it is served to the user.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions