How it works · 43 of 49 Core

How did Amazon move to service-oriented architecture with small teams?

Services behind interfaces, owned end to end

Amazon: In 1998 Amazon.com was one "bookstore" application on shared databases; every team's code read the tables directly, so a change to one table meant changing everyone's code, and every release had to be coordinated across every team. Amazon's answer had two halves. First, each service owns its data and other teams reach it only through a well-defined interface, never the database. Second, each service belongs to one small team (two pizzas, under ten people) that builds it and runs it for its whole life. The interface lets a team change its insides without asking anyone; the ownership means the people who can fix it are the ones woken when it breaks.

Loading the animation…

Say it like this Amazon split its bookstore into services that each own their data, reachable only through an interface, and gave each to one small team that builds and runs it, so a team can change its insides and ship without asking anyone.

Under the hood — for builders
The source, in its words
Amazon's 1998 manifesto (published by Werner Vogels, 2022): "The applications that run the business access the database directly and have knowledge of the data model embedded in them." The fix: clients "would no longer be able to access the database directly, but only through a well-defined interface".
Terms
Interface (API): the hatch, the only way in. Two-pizza team: under ten people. Single-threaded owner: one team accountable for one service for its whole life.
Before and after, in Amazon's words
Before: "data model changes have to be accompanied by application changes even if functionality remains the same"; "every release of that application had to be coordinated across every team". After: "from deploying dozens of feature deployments each year to millions".
Run here: one change, how many teams?
12 teams, 48 tables; each team's code reads 10 others' tables directly. Behind interfaces, 1 change in 10 alters what a hatch returns. Rates are ours.
Ownership
AWS: "single-threaded ownership over a specific product or service"; "Two-pizza teams do not hand over something they've launched to another team to run."
Measure it
Teams that must change for one change · changes shipped by one team alone · pages a team gets for services it doesn't own (should be none).
Watch out
A hatch is a promise: change it rarely, version it. Copying the services without the ownership gives a distributed monolith (C6). Company writing, first-hand but not independent.
Sources
Werner Vogels, "The Distributed Computing Manifesto", 16 Nov 2022, and "Modern applications at AWS", 28 Aug 2019, All Things Distributed · Daniel Slater, "Powering Innovation and Speed with Amazon's Two-Pizza Teams", AWS Executive Insights; all read in session · change simulation, Python, 19 Nov 2026.

What happens in the Amazon's service architecture animation, step by step?

  1. Amazon, 1998: one bookstore application on shared databases. Every team read the same tables, and every release was coordinated across every team.
  2. The fix, first half: each team gets its own service and its own data, small enough to feed with two pizzas.
  3. The rule: other teams reach your data only through your hatch, a well-defined interface, never the database.
  4. Your turn: tap round the back of any counter.
  5. Second half: the team runs what it built. Two-pizza teams do not hand a launch to another team to run.
  6. So a team changes its own data and ships alone. Deployments went from dozens a year to millions. Next: Netflix.

What everyday example explains Amazon's service architecture?

Each team runs its own counter, serves only through its hatch, and answers its own night calls.

Why should a team care about Amazon's service architecture?

"microservices" copied without the two halves gives the distributed monolith (C6): services that still share a database, or that a separate team operates. Amazon's lesson is the interface rule and the ownership, not the number of services.