All Questions
Scaling Reads hard

Your API serves different JSON content based on the `User-Agent`. You configure your CDN to respect `Vary: User-Agent`. What is the likely performance impact?

  1. A The Cache Hit Ratio drops drastically because there are thousands of unique User-Agent strings (browser versions, OS versions), effectively fragmenting the cache into thousands of tiny buckets.
  2. B Performance improves significantly.
  3. C The CDN ignores the header.
  4. D Security increases.

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

Get the app

Related questions