Part 1
Chapter 1: The Million-Dollar Mistake--In 2018, a well-funded fintech startup in San Francisco did everything right. They raised 40millioninSeriesB,hiredengineersfromGoogleandFacebook,andfollowedeveryscalabilitybestpracticepublishedinthepreviousdecade.TheychosePostgreSQLfortheirtransactionaldatabasebecauseitwasreliable,ACID−compliant,andfamiliartotheirteam.Thentheygrew.By2020,theyhad2millionactiveusersand500,000dailytransactions.TheirPostgreSQLinstance,runningonthelargestavailableAmazonRDSinstance,wasstruggling.Queriesthattook10millisecondsnowtook500.TheirCTO,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 PostgreSQL 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 PostgreSQL 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 40millioninSeriesB,hiredengineersfromGoogleandFacebook,andfollowedeveryscalabilitybestpracticepublishedinthepreviousdecade.TheychosePostgreSQLfortheirtransactionaldatabasebecauseitwasreliable,ACID−compliant,andfamiliartotheirteam.Thentheygrew.By2020,theyhad2millionactiveusersand500,000dailytransactions.TheirPostgreSQLinstance,runningonthelargestavailableAmazonRDSinstance,wasstruggling.Queriesthattook10millisecondsnowtook500.TheirCTO,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.