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

Published: 2023-08-30
Duration: 1342s
Audio: https://pdst.fm/e/pscrb.fm/rss/p/audio4.redcircle.com/episodes/25c44bea-6f62-43ed-b200-03fef46ccc50/stream.mp3

## 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.

**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](https://www.scylladb.com/).

Sponsors

- [Cipherstash](https://cipherstash.com/codestory)
- [Treblle](https://www.treblle.com/codestory)
- [CAST AI](https://cast.ai/codestory/)
- [Firefly](https://www.gofirefly.io/codestory)
- [Turso](https://turso.tech/codestory)
- [Memberstack](https://memberstack.com/codestory)

Links

- Website: [https://www.scylladb.com/](https://www.scylladb.com/)
- LinkedIn: [https://www.linkedin.com/in/dor-laor/](https://www.linkedin.com/in/dor-laor/)

  

Timestamps

00:00 – Intro

05:36 – Building the ScyllaDB MVP

07:55 – Maturing Scylla's Roadmap

09:38 – Building the Scylla Team

11:16 – Approaching Scalability

13:08 – Proudest Moment

13:44 – Mistakes and Recovery

15:08 – The Future of ScyllaDB

17:01 – Influences on Dor's Work

18:51 – What Dor Would Change

20:22 – Advice for Young Entrepreneurs

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/](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:

- [Tiger Data](https://tigerdata.com/)

- [Protected Harbor](http://protectedharbor.com/codestory)

- [Render](https://render.com/)

- [Fitnexa](https://www.fitnexa.com/)

- [Perplexity](https://pplx.ai/codestory)

- [Entelligence](https://entelligence.ai/)

Checkout our [Substack](https://news.codestory.co/subscribe)

Checkout our [Stacklist!](https://stacks.codestory.co/)

Checkout our [Patreon!](https://www.patreon.com/cw/codestory)

Hosted by  [Noah Labhart.](https://noahlabhart.com/)

  
  
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](https://redcircle.com/brands)  
  
Privacy & Opt-Out: [https://redcircle.com/privacy](https://redcircle.com/privacy)

## Chapters
- 0:00 — Intro
- 5:36 — Building the ScyllaDB MVP
- 7:55 — Maturing Scylla's Roadmap
- 9:38 — Building the Scylla Team
- 11:16 — Approaching Scalability
- 13:08 — Proudest Moment
- 13:44 — Mistakes and Recovery
- 15:08 — The Future of ScyllaDB
- 17:01 — Influences on Dor's Work
- 18:51 — What Dor Would Change
- 20:22 — Advice for Young Entrepreneurs

## Frequently Asked Questions
- **Q:** Why was ScyllaDB built in C++ instead of Java? — **A:** 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++.
- **Q:** What is ScyllaDB's shard-per-core architecture? — **A:** 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]
- **Q:** How did ScyllaDB decide what to build first after its MVP? — **A:** 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].
- **Q:** What was the biggest mistake in ScyllaDB's early history? — **A:** 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]
- **Q:** What advice does Dor Laor give young founders? — **A:** 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.
