Platform news

A faster, more resilient home for Care Friends

How moving our platform to new infrastructure made Care Friends quicker to improve, more reliable and cheaper to run, and what that makes possible next.

An abstract Azure console with some of its resource tiles left empty, and the services travelling along dotted paths, changing from blue to green, into an abstract Northflank console where each one is running with a green status light, with the Care Friends logo in the top-left corner
← All posts

By Steven Atkinson3 min read

Care Friends has been growing for a while now, with more organisations, more users and more countries. Earlier this year we moved the whole platform onto new infrastructure, in both the UK and Australia. The move happened largely behind the scenes, and that was the intention. It has made a real difference to how quickly and safely we can improve the platform, so we wanted to explain what changed and why it matters to you.

Why we moved

For years Care Friends ran happily on Microsoft Azure. As the platform grew, though, our setup there began to slow us down.

Releasing an update took 20 to 30 minutes, which is a long time to have a release in progress. Most of our releases therefore went out in the evening, out of the way of the people using Care Friends. Fixes and improvements could sit waiting for a quiet moment rather than reaching you as soon as they were ready. Our hosting costs had also crept up.

Azure is a great platform and we have nothing against it. It simply wasn't the right fit for the size of team we are today, or for the pace we want to move at.

Before the move, one release took 20 to 30 minutes and went out in the evening. Now there are several releases a day during working hours, each taking under 5 minutes.
Releases before and after the move

Fixing the foundations first

Before moving anything, we looked hard at how the platform behaved under load. That turned up a few heavy database queries and a notification pipeline that did far more work than it needed to. A new server would not have fixed either problem; they would have come with us.

So we fixed them first. We rewrote the slowest queries and changed how notifications are sent so they go out in efficient batches. Logins, the dashboard and notification delivery all became noticeably quicker, before we had moved a single server.

Five steps: fix the foundations, rehearse on a test copy, switch over in a planned maintenance window, check everything, then retire the old setup. A plan to switch back was ready but never needed.
How we moved, step by step

The move

The platform's new home is Northflank, a modern platform for running applications in containers. Customer data is hosted locally: in London for our UK customers and in Melbourne for our Australian customers.

We rehearsed the switch-over in full on a test copy of the platform, wrote it up as a step-by-step checklist, and kept a tested plan for switching back. On the day it took one planned maintenance window. We never needed the fallback plan.

Two regions, London for UK customers and Melbourne for Australian customers, each with its own website, background workers, database with multiple synchronised copies, and file storage.
Where Care Friends runs now

The move in numbers

<5 min
to release an update, down from 20 to 30 minutes
~40%
lower hosting costs
Multiple
synchronised database copies keeping the platform online
2
regions, with data kept local in London and Melbourne

What it means day to day

Updates reach you faster. Releasing an update now takes under five minutes instead of 20 to 30. New versions roll out gradually while the platform keeps running, so we release during the working day, often several times a day. We recently shipped an update in the middle of a live demo of Care Friends, and nobody noticed.

Previously we would check our shared calendar to make sure we were not at risk of kaiboshing a demo call...

Four steps taking under 5 minutes in all: tag the release, approve it, build it, then roll it out a few servers at a time so nothing goes offline.
How a release works now

The platform is more resilient. Our production database now runs as a high-availability cluster: multiple copies kept in sync, so if one fails another takes over. The website also adds capacity automatically when it gets busy.

Changes are safer. Every environment is defined in code. Infrastructure changes are reviewed in the same way as product changes, we keep a full history of them, and we can roll them back if something isn't right.

It costs less to run. Hosting now costs around 40% less than before, even with the more resilient database. That money goes back into building Care Friends.

What it makes possible

The real benefit is what comes next. Releases are quick and safe, so we can deliver improvements in small, frequent steps rather than saving them up. Each change is smaller and easier to check, and fixes reach you sooner. We also have headroom for more ambitious features that the old setup would have struggled with.

We'll write about some of those features here as they arrive. This blog is where we'll share platform news and the occasional look behind the scenes at how Care Friends is built.


Want the full technical story? Steve, who led the migration, has written a detailed write-up of the move.