Why it mattered
The data scientists' systems were key to navigating the pandemic. If they failed, they had to be recreated quickly and reliably, with as little disruption as possible.
The challenge
The situation changed quickly and requirements were fluid.
- Deployment was manual: a release took a day and was highly error-prone.
- The critical data feeds for analysis had to be identified, captured and validated.
- The systems had to be recreated through an automated recovery process in a disaster.
- New requirements had to be applied through the same process as recovery.
- Several complex third-party systems had to be accounted for.
How we worked
One team
The work had many parts, so we formed agile pods combining Avonmor and Niaxo engineers. The pods made progress independently and in parallel, and the close collaboration increased learning for everyone involved.
Quality built in
We built a test harness from the live system's behaviour, treating it as a black box. It validated the existing system, ran in the development pipelines and grew as the infrastructure as code grew, so progress was measured against the live system. Lightweight simulators for the third-party systems removed blockers and made failure scenarios easy to exercise.
No big bang
We replaced the manual deployment with CI/CD pipelines that ran the test cycles automatically, so every change was tested as it was released. Completed features joined the live pipelines as they were finished: Lambda deployments, configuration and permission changes, and dataset validation and scanning.
Resilient by design
We identified the components sensitive to out-of-sequence events and event loss, and made sure they only allowed ordered processing, protecting eventual consistency.
What changed
For the programme
- The systems data scientists relied on can be created, repaired and updated through automation.
- Releasing a change takes ten minutes, fully tested, instead of a day of manual, error-prone work.
- The entire system can be recreated in under an hour rather than a week, minimising disruption in a disaster.
For the engineering team
- Multiple environments in parallel became the norm.
- A new environment is a configuration exercise.
- Environment updates are applied through automation.
- Simulators remain part of the development process.
