I/O architecture determines scale: One large read instead of thousands of small reads changed everything Profiler-driven optimization: 90% of allocations and 70% of CPU were hiding in unexpected places Distributed redesign unlocks speed: Map-reduce Lambda architecture delivered 6x indexing speedup Compound optimizations multiply: Each optimization amplified others to reach 673 billion rows/second Production beats theory: V0's elegant design failed; V1 succeeded by respecting network physics Nearly every great engineering story starts not with a grand plan, but with a nagging, infuriating problem. Ours was simple: our needle-in-the-haystack queries were too slow. For a database company, that's an existential threat. Our customers, especially giants like Hyperscale Customer, were pushing data at a scale that made our brute-force scanning approach look like trying to find a specific grain of sand on a planet-sized beach with a teaspoon. We had to do something drastic. This is the story of that something. It's the story of a project that had been tried before and shelved, a project that rose from the dead. In a single, caffeine-fueled month between June 9 and July 8, 2025, we took Haydex, our dream of a hyper-fast filtering system, and forged it into a production-hardened reality. It was a journey into the abyss of distributed systems, a battle against memory bottlenecks, API limits, and our own assumptions. We started with a Slack message that read "The Grand Haydex Revival" and ended with a system clocking an effective throughput of 178,600,000,000 rows per second-and peaking at a synergistic 673,850,000,000 rows per second with its caching counterpart. This is how we did it. Background In this post we're talking about EventDB, our purpose-built petabyte-scale event datastore which powers Axiom's events, logs, and traces support. EventDB has a custom stateless ingest pipeline, only uses object-storage for storing all ingested data, and has a completely serverless (lam...
First seen: 2025-09-25 19:15
Last seen: 2025-09-28 15:28