A used-car marketplace moved from two hosting providers to AWS

The company is one of Europe's largest online marketplaces for used cars. Its infrastructure was spread over two hosting providers, Linode and Rackspace. The goal was one cloud, defined in code, where a new database or a fresh QA environment is a script, not a request.

At a glance

  • Company: one of Europe’s largest online used-car marketplaces, based in Berlin.
  • Period: February 2017 to April 2020, inside the company’s team in Berlin.
  • From / to: Linode and Rackspace, to AWS.
  • Scope: the full migration, infrastructure as code, secrets, configuration management, database automation and containers.

The problem

Two hosting providers means two ways of doing everything: two consoles, two networks, two sets of habits. Moving an automotive e-commerce business off them is not one big switch. It is many services and their databases, each moved without stopping a business that sells cars every day.

The databases are the hard part of any migration like this. Applications can be redeployed. Data has to arrive complete, and the users, grants and schemas around it have to match exactly.

And QA environments drift. They end up with stale data, or a hand-made copy nobody can reproduce, or a full production copy too large to be practical. Tests then pass in QA and fail in production.

What we did

Moved the whole infrastructure to AWS. The migration covered EC2, RDS for both PostgreSQL and MySQL, ECS, S3, SES, SNS, SQS, Route 53 and Lambda: nine AWS services replacing what had run at the two hosting providers.

Put the new estate in code. Infrastructure was defined in Terraform, secrets lived in Vault, and host configuration was managed with SaltStack. A migration is the cheapest moment to do this, because everything is being built anyway.

Automated database provisioning. We built automation that creates RDS instances together with their users, grants, databases and schemas. A new database became one repeatable step rather than a series of manual ones that differ a little each time.

Gave QA realistic data on demand. A second set of automation restores production backups and trims them into QA environments. Testers work with data shaped like production, at a size that QA can actually use. As a side effect, every run proves that the backups restore: a backup you never restore is a hope, not a backup.

Moved most services onto containers. We dockerized most of the services and moved them onto ECS, deployed through Jenkins. Each service then ships the same way, and a deploy becomes routine instead of a special event.

What it shows

A migration is also the moment to fix how infrastructure is managed. Doing both at once, with databases and test data automated, is the kind of cloud architecture and migration work we do, with the new estate defined as infrastructure as code.

Tell us what's broken.

A few sentences is enough. We reply within one working day and the first call is free.