Replacing a two-decade-old ad-rendering monolith
Core engineer on the cloud-native service replacing a legacy payments ad monolith, country by country.
- Role
- Core engineer
- For Amazon
- When
- –Present
- Made with Java, Amazon ECS, AWS CDK, TypeScript, ElastiCache, and CloudWatch
What it did
- Built much of its infrastructure as code across five regions with AWS CDK
- Built its integration-test framework and moved test compute to containers
- Owned its alarming and rollback monitors after the first launch
- Drove the parity fixes that let it take over new countries
What was wrong
The main service that renders ads for Amazon's payment products had grown over two decades into a monolith. Replacing it meant rebuilding the same behaviour on a cloud-native stack, one country at a time, without customers noticing.
My part
I'm one of the main builders of the replacement. I wrote much of its infrastructure as code, built its integration-test framework and pipeline stages, and worked on its ad-selection logic. After the first launch I took on alarming, launch ownership and the parity work for new countries. I also wrote its integration-testing guide and a capacity runbook.
Calls made
| The call | Why | What else was on the table |
|---|---|---|
Replace the monolith country by country, behind experiments. | Each country moves only once the new service matches the old one's behaviour, so a gap shows up in one place instead of everywhere. | |
Have the integration tests assert on rendered output. | For a rendering service, the HTML and its debug data are the contract, so the tests check those directly. |
What it showed
Launch recognition for a new ad-rendering service
Amazon, 2024
Figure 1.
What it changed
The new service has been taking over from the monolith country by country since its first launch, and the team received launch recognition for it in 2024.