VOOZH about

URL: https://thenewstack.io/case-study-tracking-a-viral-infection-requires-a-distributed-database/

⇱ Case Study: Tracking a Viral Infection Requires a Distributed Database - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2021-03-01 15:14:31
Case Study: Tracking a Viral Infection Requires a Distributed Database
contributed,sponsor-cockroach-labs,sponsored,sponsored-post-contributed,
Cloud Native Ecosystem

Case Study: Tracking a Viral Infection Requires a Distributed Database

A German startup developed an application to track people’s COVID-19 symptoms. It used a distributed database for scalability and security.
Mar 1st, 2021 3:14pm by Cassie McAllister
👁 Featued image for: Case Study: Tracking a Viral Infection Requires a Distributed Database
Cockroach Labs sponsored this post.

Cockroach Labs sponsored this post.

Cassie McAllister
Cassie McAllister is a product marketer at Cockroach Labs, the company behind CockroachDB, the most highly evolved database on the planet. Previously, Cassie worked in product marketing at Timescale, another modern distributed database.

Last year, the German government sponsored a hackathon to deal with the emerging COVID-19 crisis. One German startup responded with an application designed to track people’s COVID-19 symptoms. Central to the success of the application has been a set of open source technologies, as well as a strong distributed database to ensure scalability and security.

The project, called Quarano, went live just 10 weeks after the hackathon. This system allows patients to log a diary of symptoms which is then monitored by the Health Authorities.

For the hackathon challenge, the Quarano team wanted to focus their project on making the COVID-19 documentation process more effective. The German government operates on a Health Authority basis, meaning that each region in Germany has its own authority that makes its own rules for tracing the virus. Health Authorities used (and in some cases are still using) pen and paper to record people’s symptoms and who they have been in contact with.

Not only is this manual documentation method inefficient and unreliable, it also significantly slows down the process of tracking the virus.

After the hackathon, the team had an open source “contact tracing” prototype that would allow authorities to understand where and how the virus was spreading.  It could also be used to organize quarantines, and even offer health services for citizens.

Going Viral

With a working prototype ready, the team was confronted with a number of challenges to make it scale into production use, as well as to make it secure.

The application itself would need to easily scale to new regions should other authorities want to use it. For starters, all the technologies that make up Quarano needed to be open source, including the infrastructure and the database.

Cockroach Labs makes CockroachDB, the most highly evolved cloud-native, distributed SQL database on the planet. It helps companies of all sizes — and the apps they develop — scale fast, survive disaster, and thrive everywhere.
Learn More
The latest from Cockroach Labs

This requirement led to a design built on Spring Boot, which exposed a REST API to track cases of COVID-19 infections. The application backend uses a standard Maven project based on a series of open source technologies. Deutsche Telekom donated the hardware. Currently, the project uses three nodes (one per region) in Germany, and each node has four vCPUs.

The team also needed a database that could be hosted as a cluster on this private cloud. As per requirements, it would need to be open source and it would need to scale.

The Quarano team started building their application on another distributed database, but found the performance lacking. So they tested CockroachDB, and were pleased by its ability to scale and were intrigued by its geo-partitioning capabilities, should their product grow beyond Germany.

CockroachDB has a node-based architecture where each node functions on its own but is part of a cluster of nodes that presents as a single logical database. Every node is a gateway to the entirety of the database, and if a node fails, it automatically comes back online. This ensures Quarano will survive any failure and will always be on and available.

👁 Image

Overview of the application component.

Security, of course, was also a factor for the team. The application collects a lot of data about users (age, gender, symptoms, location, etc). Because CockroachDB has built-in encryption, Quarano did not have to implement a supplemental encryption solution.

If Quarano adds an additional Health Authority located in a different region, they can simply add more nodes. When a node is pointed at the cluster, it instantly rebalances the data across all of the nodes to incorporate this new resource. With the addition of a new node, you also scale out the volume of transactions the single logical database can handle. This means that as you add nodes, you scale both reads and writes which would ensure that Quarano is performant.

Should the application’s reach expand beyond Germany, that’s when Quarano could leverage CockroachDB’s geo-partitioning features. Geo-partitioning ties data to a location at the row level. This helps Quarano meet latency requirements by keeping data close to its users, and it would also help with regulatory compliance that may require data to reside in a particular geographic jurisdiction.

The team is planning to sign additional Health Authorities in the future. And they are currently working on adding more functionality to the app itself to make it more user-friendly for citizens, not just healthcare workers.

Quarano is one example of the amazing things you can build with CockroachDB. To learn more about what others are building, visit our customer page.

Cockroach Labs sponsored this post.

Feature image via Pixabay.

Cockroach Labs makes CockroachDB, the most highly evolved cloud-native, distributed SQL database on the planet. It helps companies of all sizes — and the apps they develop — scale fast, survive disaster, and thrive everywhere.
Learn More
The latest from Cockroach Labs
TRENDING STORIES
Cassie McAllister is a product marketer at Cockroach Labs, the company behind CockroachDB, the most highly evolved database on the planet. Previously, Cassie worked in product marketing at Timescale, another modern distributed database.
Read more from Cassie McAllister
Cockroach Labs sponsored this post.
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Pragma.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.