All Questions
Api Design hard

Your API is deployed in US-East and EU-West with regional databases. A user in US creates an order, then immediately calls EU API to list orders (routed by DNS). The new order is missing. Why?

  1. A The mismatch is caused by cross-region replication lag, as the asynchronous data synchronization between the US and EU databases hasn't completed during the read-after-write window.
  2. B The order was successfully persisted in the US region but was discarded by the EU database due to a primary key collision caused by an uncoordinated UUID generation algorithm.
  3. C An intermediate CDN or Edge proxy has cached the empty order list for that specific user, preventing the request from ever reaching the fresh data stored in the EU regional database.
  4. D The global DNS provider has misrouted the request to a legacy staging environment in the EU region that is not configured to participate in the production data replication ring.

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

Get the app

Related questions