CourseAI System Design: The Complete Course · Module 4: Architecture Selection · part 33 of 107
Part 33 · Module 4: Architecture Selection

Incident: A distributed design hit its limit at 5% load

34 min read·
Module 4 · Incident file · About 30 minutes

What happened

TIMELINE Prime Video's monitor, in order order as published First version serverless: Step Functions, Lambda, S3 Onboarding streams very expensive; scaling bottlenecks Hard limit at around 5% of the expected load One process ECS and EC2; frames in memory 22 March 2023 Kolny's post: cost down over 90% 5 May 2023 DevClass report and reactions
The order of events as published; the post gives no dates for the build or the move, only the post itself (22 March 2023) and DevClass's report (5 May 2023).

On 22 March 2023 Marcin Kolny, a senior engineer at Prime Video, published "Scaling up the Prime Video audio/video monitoring service and reducing costs by 90%" on the Prime Video Tech blog. The original address now redirects to an Amazon page; the post is read here from the Internet Archive's copy. On 5 May 2023 Tim Anderson reported it for DevClass ("Reduce costs by 90% by moving from microservices to monolith: Amazon internal case study raises eyebrows"), with the developer community's reaction.

Prime Video wanted a tool that would "monitor every stream viewed by customers" and catch quality problems such as "block corruption or audio/video sync problems". The team's existing tool was never "designed to run at high scale", and the target was "thousands of concurrent streams". While onboarding more streams they found that "running the infrastructure at a high scale was very expensive", and found scaling bottlenecks. The design, in the post's words, "caused us to hit a hard scaling limit at around 5% of the expected load", and "the overall cost of all the building blocks was too high to accept the solution at a large scale". The post gives no dates for the build or the move.

This is not an AI system: the defect detectors analyse video frames, but what failed was the architecture around them. The arithmetic is the same one an agent design must pass.

The rest of this course is yours to keep

This course is bought on its own, once, and stays readable afterwards, including the parts added to it later.

Or open everything with a plan