Custom integration or automation platform: which to choose
Automation platforms are the fastest way to connect two systems. A custom integration earns its cost when the data matters, the volume is high or the sync runs both ways.
Most of a migration happens before the day itself. If the new platform is built, tested and rehearsed first, the switch becomes the smallest part of the job.
Moving a live application to a new cloud provider sounds like a weekend job with a maintenance page. For a platform that takes bookings, orders or payments around the clock, a maintenance page means lost revenue and customers who notice. The good news is that a well-planned migration doesn’t need one.
We recently moved tobook’s booking platform from Azure to AWS with no downtime. This article sets out the approach we used, in the order we used it. It applies whether you’re leaving Azure, another cloud provider or servers in your own building.
Migrations usually go wrong on things nobody wrote down. A scheduled job that sends invoices at 2am, a certificate renewed by hand once a year, a firewall rule added for one supplier: none of these show up in the application code, and each one stops working if it’s left behind.
Before building anything, make a full list of what is running today:
This list becomes the checklist for the rest of the project. If something is on the old platform and not on the list, it will not be on the new one.
Describe the AWS platform in code with a tool such as Terraform, then build it from that code. It takes longer up front than clicking through the AWS console, and it pays for itself several times during the migration.
Infrastructure in code means you can build a staging copy that matches production exactly. Every change is reviewed and recorded, so you can see what changed between rehearsals. And if something goes wrong late in the project, you can tear the environment down and rebuild it in minutes.
It also helps after the move. A platform described in code can be handed to another engineer, audited for security or rebuilt in another region without relying on anyone’s memory.
With the new platform built, run it alongside the old one in a staging environment. Point a copy of the application at it, load a recent copy of the data and test every journey that matters to your customers: signing in, searching, booking, paying, receiving emails and anything that talks to a third party.
This is where the list from step one earns its place. Work through it line by line and confirm each item works on AWS. Anything that fails at this stage can be fixed before a customer sees it.
Moving the application itself is usually straightforward. The data is harder, because it keeps changing while you move it.
For a small database that changes slowly, a short pause in writes while the final copy is taken may be acceptable. For anything busier, the usual approach is to copy the data ahead of time and then keep the new database in step with the old one until the moment of the switch. AWS Database Migration Service and native database replication can both do this, and the right choice depends on your database engine and how much it changes.
Whichever method you use, check the data on both sides before the switch. Compare row counts and totals for the tables that matter and spot-check recent records. Files in storage need the same treatment: copy them early, then sync the changes.
The switch itself should be the second or third time you’ve done it. Write a runbook that lists every step in order, who does it and how long it should take, then run it end to end against staging.
A few days before the real cutover, lower the TTL on the DNS records you’ll change, to five minutes or less. That way, when you point the domain at AWS, browsers and networks pick up the change quickly. Issue the certificates for the new platform in advance too, so the first request to AWS is already served securely.
Decide in advance what would make you stop and switch back, and rehearse that as well. Keep the old platform running and able to take traffic until the new one has proved itself.
On the day, follow the runbook. Stop the data sync at the agreed point, confirm the final checks and move the traffic. Then watch the error rates, response times and the journeys you tested in step three. If the rehearsal went well, this part is uneventful.
Keep the old platform available, but idle, for an agreed period afterwards. Once you are confident nothing is still pointing at it, shut it down and stop paying for it.
A migration ends with a platform that someone has to run. Before you call the project finished, make sure monitoring and alerts go to the right people, backups have been restored at least once and the release process deploys to staging before production. Write down how the platform fits together while the details are fresh.
Teams with experienced cloud engineers can run a migration like this themselves. If yours doesn’t, or the platform is too important to learn on, it’s worth working with a team that has done it before. Our cloud migration service follows the steps in this article, and once the move is done we can host and support the platform on AWS in London.
Keep reading
Automation platforms are the fastest way to connect two systems. A custom integration earns its cost when the data matters, the volume is high or the sync runs both ways.
The cost of custom software depends on scope, integrations and risk. Here's what moves the number, what you pay after launch and how to keep spending under control.
In the UK, the agency owns the copyright in the code it writes unless the contract hands it to you. Here's what to check before you sign.
Tell us what you need and we'll reply within one working day. Once it's sent, you can book a free 30-minute call with Louie, our founder, and we'll follow up with a written quote.