Skip to content

How a database migration cut costs by 90% for this NHS app

"Downtime is not an option when you're running a critical service for someone like the NHS."

How a database migration cut costs by 90% for this NHS app
The Stack's Kiera Fields and RLDatix CTO Richard Jarvis

When the users of a critical NHS app doubled rapidly, the app provider knew it needed to move the application’s database to a more scalable option.

By migrating from SQL Server to Aurora Postgres database, hospital workforce solutions company RLDatix was able to cut costs by 90% and improve its app rating – while scaling users.

The Stack sat down with RLDatix’s Chief Technology Officer Richard Jarvis to talk about its recent database modernization.

The company supplies over 10,000 customers across some of the largest hospitals in the world with software. 

Jarvis, who has previously worked as a lead engineer at DXC and BAE Systems, tells us the company supplies the NHS with an app called Loop that helps manage hospital staffing. After users doubled, recently reaching 1.7 million, the team needed to scale the database underpinning the application. 

“When there's two million users, we want it to be just as fast as it was when there was only one million users on it,” Jarvis told The Stack. This required a database that had scalability and extensibility, while also remaining cost effective.

The architecture was a Microsoft SQL Server (RDS), deployed across multiple regions to meet data residency requirements on AWS. After migrating to Aurora Postgres, the application saw query response speeds double.

New database, stat

Loop, the mobile app RLDatix supplies to the NHS, lets staff see their scheduled shifts running on critical workforce data around surgeries and availability.

That data also moves constantly. Shifts get updated, staff call in sick, and unfilled slots get offered out to people who might be available. Jarvis described the underlying volume as "millions of users and thousands of shifts making hundreds of millions or billions of rows of data in our database," with the exchange needing to be "real-time and reliable."

Demand on Loop is also spiky. Usage surges at the start and end of shifts, and climbs further around events such as the run-up to a holiday. On a traditional database, Jarvis said, the only option was to size for the peak — which meant paying for headroom that sat idle most of the day. "When you're not using all of that capability, then you're wasting money," he said.

Can’t teach an old RDS new tricks

The previous architecture ran Microsoft SQL Server on RDS, deployed across multiple AWS regions to satisfy data residency requirements. 

During peak periods that environment became a bottleneck because of limited vertical scaling options and high licensing costs, as an AWS case study shows.

Jarvis added RLDatix wanted to reallocate engineer time. "We want to focus our engineers' time on building new applications or supporting features that will help our customers, not on running a database that isn't adding any value to our customer base," he said.

When weighing alternatives, RLDatix evaluated technologies against a consistent set of non-functional requirements: supportability, scalability and cost-effectiveness.

Postgres satisfied the open-source criterion and is, in Jarvis's words, "widely adopted by the market." Aurora layered on the extensibility and supportability characteristics the team wanted, along with a cost profile that would hold up as Loop kept growing.

Extensibility to Jarvis means the database doesn’t slow down as users are added. Scalability meant doing that growth cost-effectively, without "a sudden need to change technology" once the user base crossed a hypothetical threshold. Linear scaling, he said, was what allowed RLDatix to keep selling Loop beyond the NHS to organisations with their own rostering problems.

A clean cut

RLDatix worked with AWS and with Cintra, the partner that handled the migration, to move Loop off SQL Server and onto Aurora PostgreSQL. 

For a service the NHS depends on, the migration could not interrupt live operation. "Downtime is not an option when you're running a critical service for someone like the NHS," Jarvis said, "So we had to move our database technology across without interrupting our live service."

The case study notes describe the outcome as a “minimal downtime modernization completed in under two months."

Aurora's scaling behaviour also reshaped how the team handles Loop's daily peaks. Rather than provisioning for the busiest moment of the day, the database now expands and contracts as load shifts. "With Aurora Postgres, we're able to scale up and down as the needs of the application change throughout the day," Jarvis said. 

"So that means we're always paying the appropriate amount of money for our application. But when we get to a busy period, let's say a moment before a holiday, then we can scale up so everybody gets the best experience."

Jarvis was clear that this didn't remove the need for human expertise — it redirected it. "What using Aurora allows us to do is focus on the business problem rather than the engineering problem. So understanding when there are peaks in the data is something that our experts can do. But then once they know what that is, scaling the Aurora database to meet those peaks is much more straightforward."

Open-source cost reductions

RLDatix has seen Loop's app store rating climb since the migration, which Jarvis attributes in part to better performance. "Our customers are happier and it costs us less money," he said.

On cost, the savings come from two places. CPU is used more efficiently, which lowers the compute bill, and the SQL Server licence falls away entirely because Postgres is open source. "We benefit from both sides, better compute and licence-free technology," Jarvis said.

The Cintra case study cites a 90% cost reduction from eliminating both SQL Server licensing and SQL Server RDS, and a 2x improvement in database query response time. They also note fine-grained scalability and automated replication via Aurora PostgreSQL.

AI and data lakes on the horizon

The modernization has shifted RLDatix's broader data strategy in two directions. The first is internal: with Loop now on Aurora PostgreSQL, other databases have plans to move. "It's also set the path for our other SQL Server databases to move to Aurora Postgres," Jarvis said. "So our data strategy is being turbocharged by this new way of using data technology in AWS."

The second is about what Postgres makes possible downstream. Because it is open source, Jarvis said, it offers new ways of working with the data, "which makes it easier to bring it into our data lake and to do AI and big data learning on top of that data." 

"That AI has to be built on high-quality data that's available in our data lake," he said. "Using Aurora Postgres, we can get that data into our data lake more straightforwardly, allowing our AI agents to propose the right information to our customers."

Delivered in partnership with AWS.

Add The Stack on Google