Grokking Modern API Design Interview
Vote

0% completed

Caching in the Contract

A partner reads a price, stores the response, and uses it ten minutes later. The origin server now has the correct new price. The answer used by the partner is still wrong for the current purchase.

Caching is not complete when the interviewer hears "We will put a CDN in front." The contract question is:

Who may keep this response, and for how long may that copy be reused without checking?

1. Three Places Keep Copies

A client cache lives in an SDK, browser, mobile app, or partner process. It reads HTTP cache headers and avoids a network call while the copy is fresh.

.....

.....

.....

Like the course? Get enrolled and start learning!