Non-Fiction, Strategic Atlas, Database

Cloud Database Map eBook

Compare AWS Aurora, Google Spanner, Microsoft Cosm

by Link Ines

  • English
  • 127 pages
  • 2026
  • SamEnrico

Compare AWS Aurora, Google Spanner, Microsoft Cosmos DB, and Snowflake on transactional versus analytical workload focus.

Formats

Free sample

Chapter 1: The Million-Dollar Mistake--In 2018, a well-funded fintech startup in San Francisco did everything right. They raised 40millionin Series B,hiredengineersfrom Googleand Facebook,andfollowedeveryscalabilitybestpracticepublishedinthepreviousdecade.Theychose Postgre SQLfortheirtransactionaldatabasebecauseitwasreliable,ACID−compliant,andfamiliartotheirteam.Thentheygrew.By2020,theyhad2millionactiveusersand500,000dailytransactions.Their Postgre SQLinstance,runningonthelargestavailable Amazon RDSinstance,wasstruggling.Queriesthattook10millisecondsnowtook500.Their CTO,desperatetofixtheproblem,madeadecisionthatwouldcostthecompany40 million in Series B, hired engineers from Google and Facebook, and followed every scalability best practice published in the previous decade. They chose Postgre SQL for their transactional database because it was reliable, ACID-compliant, and familiar to their team. Then they grew. By 2020, they had 2 million active users and 500,000 daily transactions.

Their Postgre SQL instance, running on the largest available Amazon RDS instance, was struggling. Queries that took 10 milliseconds now took 500. Their CTO, desperate to fix the problem, made a decision that would cost the company 40millionin Series B,hiredengineersfrom Googleand Facebook,andfollowedeveryscalabilitybestpracticepublishedinthepreviousdecade.Theychose Postgre SQLfortheirtransactionaldatabasebecauseitwasreliable,ACID−compliant,andfamiliartotheirteam.Thentheygrew.By2020,theyhad2millionactiveusersand500,000dailytransactions.Their Postgre SQLinstance,runningonthelargestavailable Amazon RDSinstance,wasstruggling.Queriesthattook10millisecondsnowtook500.Their CTO,desperatetofixtheproblem,madeadecisionthatwouldcostthecompany2.3 million over the next 18 months: they migrated everything to Snowflake. Not just their analytics—their actual transaction processing. The shopping cart, the payment authorization, the inventory updates.

All of it. The reasoning seemed sound at the time. Snowflake claimed to be a data warehouse, but its marketing materials talked about "converged workloads" and "real-time analytics." The engineers convinced themselves that if Snowflake could handle petabytes of analytical queries, it could certainly handle their modest 500 transactions per second. They were catastrophically wrong.The first sign of trouble came during the Thanksgiving shopping weekend. Latency on single-row lookup operations—the kind that power a shopping cart display—spiked to 800 milliseconds.

Then 1,200. Then 3,000. Customers saw spinning loaders and abandoned their carts. The engineering team discovered that Snowflake's columnar storage, optimized for scanning millions of rows, was fundamentally terrible at retrieving a single row. Every "SELECT * FROM cart WHERE user_id = 123" required Snowflake to scan entire micro-partitions of compressed data, decompress them, then filter.

What took 5 milliseconds in Postgre SQL now took 300 on a good day. The second sign of trouble came when they tried to enforce referential integrity. Snowflake has no foreign keys. The database happily let orphaned records appear. An inventory item could be "shipped" before it was "reserved." The team had to rewrite their application logic to manually check every relationship—a rewrite that took six weeks and introduced three new bugs that cost real money.

The third and final sign came during a routine update. A single UPDATE statement that modified 10,000 rows in Postgre SQL took 50 milliseconds. In Snowflake, that same operation rewritten as a MERGE (because Snowflake doesn't support standard UPDATE with complex joins) took 4 seconds and cost 1.20incomputecredits.Thesameupdate,running10,000timesperday,wascostingthem1.20 in compute credits. The same update, running 10,000 times per day, was costing them 1.20incomputecredits.Thesameupdate,running10,000timesperday,wascostingthem12,000 per month in Snowflake credits alone. By the time they admitted their mistake and migrated back to a transactional database—this time Amazon Aurora—they had burned $2.3 million in cloud costs, lost 8 percent of their customers, and fired the CTO who made the original decision.The One Database Fallacy This story is not unusual.

In fact, it is so common that it has a name: the One Database Fallacy. The One Database Fallacy is the belief that a single database system can serve all of an organization's workloads effectively. It is a seductive lie. It promises simplicity, reduced operational overhead, and the comfort of a single vendor relationship. It delivers the opposite: complexity, hidden costs, and the slow erosion of engineering credibility.

The One Database Fallacy takes three common forms, each with its own pathology. The first form is what I call "The Upgrade Trap." An organization starts with a simple database—perhaps My SQL or Postgre SQL—for a simple web application. As the application grows, they convince themselves they can keep using the same database by scaling up to larger instances, then adding read replicas, then sharding. Each upgrade is painful, but the team rationalizes that "rewriting everything for a new database would be harder." This is almost always wrong. The second form is "The Enterprise Consolidation," where a large organization standardizes on a single vendor—Oracle, Microsoft, or a cloud provider's flagship database—across all teams and all workloads.

The justification is vendor discounts, simplified procurement, and "one throat to choke." The reality is that some teams end up using a database that is simultaneously too expensive and too limited for their needs. The third form, and the one that killed our fintech startup, is "The Marketing Victim." This is when an engineering team reads marketing materials from a cloud database vendor that claims to do everything—transactions and analytics, SQL and No SQL, regional and global—and believes them. They select a database based on a feature matrix rather than an understanding of fundamental trade-offs. The result, as we saw, is disaster.The Taxonomy That Will Save Your Career Before you can choose the right database, you must understand the fundamental distinction that most engineers learn the hard way: the difference between OLTP and OLAP. These acronyms, which date back to the 1970s, are not academic relics.

They describe two fundamentally different ways of storing, accessing, and processing data. Confusing them is the single most expensive mistake you can make in cloud database architecture. Let me state this as clearly as possible: there is no database that is equally good at both. Any database that claims to be is either lying, compromised, or specialized for a tiny niche that you almost certainly do not occupy.OLTP: The World of Transactions OLTP stands for Online Transactional Processing. The key word is "transactional." These are the databases that power your application's core operations: creating a user account, adding an item to a shopping cart, processing a payment, updating inventory.

OLTP databases are optimized for high volumes of small, fast operations. Think thousands of writes per second, each modifying a small number of rows (often just one). OLTP databases prioritize four things above all else. First, ACID compliance. Atomicity ensures that a transaction either completes fully or not at all—no partial updates.

Consistency ensures that transactions only bring the database from one valid state to another, respecting all constraints and rules. Isolation ensures that concurrent transactions do not interfere with each other. Durability ensures that once a transaction is committed, it survives crashes and power outages. For a banking application, ACID is not optional. It is the difference between a million dollars in your account and a million dollars in someone else's.

Second, low latency. OLTP queries must return in milliseconds. A shopping cart that takes 200 milliseconds to load will lose customers. A payment authorization that takes 500 milliseconds will trigger fraud detection false positives. OLTP databases achieve low latency through row-oriented storage, indexes, and caching.

Third, high concurrency. OLTP systems must handle thousands or millions of simultaneous users, each performing their own small transactions. This requires sophisticated locking, multi-version concurrency control (MVCC), and often read replicas to offload SELECT queries. Fourth, normalized schemas. OLTP databases typically use normalized table structures (third normal form or similar) to reduce data duplication and ensure consistency.

The same customer address appears in one place, not in every order record.Examples of pure OLTP workloads include payment processing…

This is the end of the free sample. Get the eBook to keep going. Buy now

About this book

Compare AWS Aurora, Google Spanner, Microsoft Cosmos DB, and Snowflake on transactional versus analytical workload focus.

Details

Author
Link Ines
Publisher
SamEnrico
Language
English
Genre
Non-Fiction, Strategic Atlas, Database
Released
2026-06-01
Pages (approx.)
127
Available as
eBook, Audiobook

Read better in the ZLOADR app

Your eBooks on your phone or tablet. Sign in with your SamEnrico account and start reading.

More by Link Ines

See all

You may also like

See all