All Questions
Sharding hard

You shard your SaaS database by `OrganizationID` to ensure perfect 'Data Locality' for your clients. What is the most critical risk associated with this decision as your business grows?

  1. A It will become impossible to perform backups for individual organizations.
  2. B The 'Whale' Problem: if one client (like a Fortune 500 company) grows so large that their data exceeds the capacity of a single physical server, that company becomes 'un-shardsable'.
  3. C The database will run out of available unique keys if you have more than 64,000 different organizations.
  4. D Network latency between microservices will increase because the data is 'pinned' to specific regional datacenters.

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

Get the app

Related questions