Two Million Records, One Afternoon
Easy · system design problem
A partner dumps 60× its normal import volume for two and a half minutes. The Lambda importers hit their concurrency limit and the partner’s retries make it worse.
Partners push records through the API gateway to import-fn, a Lambda that processes each record (~500 ms) and writes it to S3. At T+20s a partner replays its whole catalog: 60× the usual rate for 150 seconds, and partner SDKs retry failures twice. import-fn tops out at 1,000 concurrent executions (2,000 records/s). Imports may finish up to 30 minutes late — but every record must be accepted, from the first second of the replay. You run on AWS.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.