ENGINEERING 39 upvotes 2010

Scaling MySQL to 700 million inserts per day

39 pts
Hacker News Signal
2010 · Shared by @bluesmoon
Scaling MySQL to 700 million inserts per day by @bluesmoon

Retrospective Overview & Key Insights

Distilled reflections, business mechanics, and tactical takeaways:

In this technical retrospective (2010), @bluesmoon shares practical architectural lessons learned from running, scaling, or migrating production software under lean constraints.

Core Principles for Independent Builders:
1
Defaulting to simpler architectures (such as monolithic frameworks, SQLite, or managed VPS) prevents early engineering bankruptcy.
2
Evaluating true compute and egress costs reveals that high cloud bills can often be slashed by 80%+ through judicious re-platforming.
3
Code you write at 2 AM as a solo engineer must be easy to debug six months later without complex microservice dependencies.
Community Debate Themes:

HN engineers debated the tradeoffs between cloud convenience and raw server economics, database indexing strategies, and resisting premature architectural complexity.

Community Discussions & Critical Reviews

Key perspectives, counter-arguments, and peer founder insights debated on Hacker News (28 total discussions):

FO @forkqueue Peer Contributor
CP @cperciva Peer Contributor
MI @MichaelGG Peer Contributor

I wonder why they used a database at all: "These records are then read out once at the end of the day, summarised and then very rarely touched again."

And later on they end up writing them to a text file and bulk inserting them in 10K batches. Wouldn't it be easier to just write them all to a file then summarize at the end of the day? (It also says they do a DROP TABLE on each day's data.)

PA @Paul_Morgan Peer Contributor

Why no discussion of the disk drives supporting this database? The write performance dropped to 150 when the disk starts getting pounded as, up to that point, everything was in a memory buffer. Does the temporal partition spread the file over multiple drives? What's the capacity and theoretical throughput of the drives?

DA @danwolff2 Peer Contributor

Interesting use of tables, as previously commented, but we at room.ly surely appreciative of your post as we are currently on a PHP/MySQL diet and looking to reach critical mass soon after a few updates

HISTORICAL ERA Web 2.0 Genesis (2007–2013)
COMMUNITY SCORE 39 points
TOTAL DISCUSSIONS 28 comments
TOPICS & TECH STACK: