SecLern
Blog · Video lessons · 2 min

Why Prime Video put its microservices back into one app

Why Prime Video put its microservices back into one app

By The SecLern Team · Dec 2, 2026

Transcript

In 2023, a team at Prime Video cut one system's cost by over 90%. How? They put its pieces back into one program. First, two words. A monolith is one big app, with every part inside one program. Microservices split it into small apps that talk over the network. Each piece can grow, ship and fail on its own. The team's tool watched video streams for defects, like a frozen picture or sound out of sync. They first built it from small cloud pieces. One piece cut each stream into frames. Separate detectors checked those frames, each one its own service. An orchestrator, a service that tells each piece when to run, moved every stream along, step by step. Then they tried it on real traffic. For every second of video, the orchestrator counted several steps, and hit the account's limit. Worse, frames couldn't just be handed over. Each one was saved to S3, Amazon's cloud storage, then read back by the detectors. A storage call for every frame, and every call is billed. It hit a wall at about 5% of the load they needed. So they moved every piece into one process. Now a frame goes from the converter to the detectors in memory, with no storage trip at all. The steps became plain function calls inside the program. Infrastructure cost fell by over 90%, and it now handles thousands of streams. And it's not really a return to one giant app. It grows by running more copies of that program, and it spreads detectors across copies when one gets too full. Some engineers called it a refactor, not a retreat. The real lesson is about where you cut. Every network hop costs time, and often money. Pieces that swap data many times a second belong together. Split where teams and workloads truly differ. So remember it like this. Keep chatty parts together. Split the parts that grow apart. Want to practise cloud design hands-on? Try it free at seclern.com, and follow for more.

The SecLern TeamSecLern builds practice questions, performance-based questions and browser-based hands-on labs for IT certifications.