Byte-Sized Design

Byte-Sized Design

Share this post

Byte-Sized Design
Byte-Sized Design
The Database Google Uses to Build for Everyone

The Database Google Uses to Build for Everyone

Because nothing else was good enough

Byte-Sized Design's avatar
Bhavana's avatar
Byte-Sized Design
and
Bhavana
Feb 08, 2024
∙ Paid
11

Share this post

Byte-Sized Design
Byte-Sized Design
The Database Google Uses to Build for Everyone
Share
(Source: A royalty free photo on unsplash)

📝 tldr;

To handle the demanding uptime and scale requirements imposed by their critical business applications, Google built a widely-distributed database called Spanner - the service can span multiple machines and multiple data centers and regions around the world.

Spanner supports externally consistent reads at global scale. It does so by:

  1. Implementing snapshot-based reads that don’t require locks.

  2. Using a distributed clock called TrueTime to get around clock skew issues.

  3. Timestamps for each transaction to generated shared snapshots.

🙋‍♀️ Credit to our Contributing Author

Bhavana wrote this amazing article to share with our 18,000+ readers! If you’re also interested in being a byte-sized design writer, consider applying here!

Bhavana Hindupur is a Principal Software Engineer at Microsoft. She brings experience from her tenure at tech giants Google and Amazon, where she designed and implemented several large-scale solutions in the cloud.

Read more from her at thepeoplessoftwareengineer

🤨 What is external consistency?

It is the guarantee that at any given point in time, any database read will see the effects of all transactions committed by that point.

🤷‍♀️ Why is it tricky to implement at global scale?

Keep reading with a 7-day free trial

Subscribe to Byte-Sized Design to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
A guest post by
Bhavana
Hello! 🙋‍♀️ I’m a Principal Software Engineer at Microsoft, with a passion for large scale software design and helping software engineers level up their interpersonal communication skills.
Subscribe to Bhavana
© 2025 Byte-Sized Design
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share