New every Friday: the week's best founder lessons in one email. Subscribe free
Back to All Episodes
S8 Bonus: A Faster Cassandra-Compatible Database with Dor Laor of ScyllaDB
Aug 30, 2023 22:22

S8 Bonus: A Faster Cassandra-Compatible Database with Dor Laor of ScyllaDB

Bonus
0:00 / 22:22

About this episode

A Cassandra-compatible database rewritten in C++: Dor Laor of ScyllaDB on shard-per-core architecture that delivers low latency for data-intensive applications.

———

Dor Laor lives North of Tel Aviv, Israel, but travels 4 times out of the year to the states. He loves tech, which drives 200% of his day. Outside of tech, he is married with two teenage kids, and enjoys extreme sports. At the time, he does snowboarding and mountain biking, mentioning that the best place to mountain bike was a ski resort in France. He would love to do surfing, but hasn't found the time to hit the waves around Israel.

Dor and his co-founder met long ago at another startup. Post acquisition, they listed ideas of what to start building next. They decided to build an operating system like to Linux, and noticed that databases still didn't run faster within their system. They decided to tackle distributed NoSQL databases instead.

This is the creation story of ScyllaDB.

Sponsors

Links

Times are from the episode recording; ad breaks in your player may shift them a bit later.

Read the key answers from this episode, with quotes and timestamps from Dor Laor from ScyllaDB: https://www.codestory.co/episodes/s8-bonus-the-bare-metal-database-revolution-engineering-c-thread-per-core-systems-and-overthrowing-the-jvm-with-dor-laor-co-creator-of-kvm-ceo-of-scylladb/



Current Sponsors:

Checkout our Substack

Checkout our Stacklist!

Checkout our Patreon!

Hosted by Noah Labhart.



Our Sponsors:
* Check out Granola and use my code granola.ai/CODESTORY for a great deal: https://granola.ai
* Check out Perplexity: https://pplx.ai/codestory


Advertising Inquiries: https://redcircle.com/brands

Privacy & Opt-Out: https://redcircle.com/privacy

Chapters

Featured Guest

Latest Season of the Podcast is Sponsored By

Key Takeaways

  • A Pivot Born From Benchmarks: While showing that databases ran faster on their new operating system, the team found Cassandra didn't. They traced this to its Java implementation and pivoted to building a database.
  • Shard-Per-Core in Modern C++: ScyllaDB runs one thread per processor with a shared-nothing design. The team first built the Seastar library and a basic HTTP daemon that handled millions of requests per second on one machine.
  • Compatibility Set the Early Roadmap: The first job was matching Cassandra's API, with better performance, so users could migrate without client-side code changes. Unique features and DynamoDB compatibility came later.
  • Overshooting on Scale: The team ran a billion-operations-per-second benchmark that Dor says no one needs. It also built TCP kernel bypass, then never used it in production.
  • Commit to SaaS Earlier: Dor wishes ScyllaDB had shifted to a cloud-native, as-a-service model much sooner. He also says the team working on that service started too small for its goals.

Frequently Asked Questions

Why was ScyllaDB built in C++ instead of Java?

Dor Laor says the team found Cassandra, written in Java, had a scalable design but weaker per-unit economics in its implementation. In his words, "Java is a great language for management application," [04:41] but not for infrastructure, so ScyllaDB was written in modern C++.

What is ScyllaDB's shard-per-core architecture?

It is a shared-nothing design in which a server with 20 processors runs 20 threads that all do the same work. Dor explains that "The shard per core is a notion where you run one thread on one processor." [06:24]

How did ScyllaDB decide what to build first after its MVP?

Dor says API compatibility with Cassandra made the early roadmap easier, since users needed to migrate without changing client code. As he put it, "We just needed to implement the API and in a much better way than the origin" [08:29].

What was the biggest mistake in ScyllaDB's early history?

Dor points to the company's first project, a new operating system meant to compete with Linux for virtualization workloads, and says the team was slow to recognize the problem. He admits, "The whole original project was a mistake and it was relatively hard to recover from it." [13:51]

What advice does Dor Laor give young founders?

He recommends finding someone you fully trust and can share everything with. He also suggests testing good advice against an opposing view: "try to receive another advice, a counter advice that have an opposite outcome" [21:25], then decide between the two.

Media List 5000, Podcasts, Fall 2026