Dropbox: Monday 9 a.m.
Hard · system design problem
Monday morning: sync traffic ×2.5, uploads ×2.5 — and at T+90s the metadata primary dies. Every request counts, so the system must be ready before nine.
Desktop and mobile clients poll and update file metadata through metadata-api (autoscaling, 20 DB connections per instance) on PostgreSQL (one read replica, 400 connections). File blocks go through upload-api, which streams each one to S3 — holding a thread for 1.5 s — and then commits its metadata. New upload-api instances take two minutes to boot. At T+20s Monday starts: sync ×2.5 and uploads ×2.5 for ten minutes. At T+90s the metadata primary’s disk fails. The run is graded on the whole morning.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.