New every Friday: the week's best founder lessons in one email. Subscribe free
Back to All Episodes
S8 Bonus: Building an Edge Database on SQLite with Glauber Costa of Turso
Apr 26, 2023 27:46

S8 Bonus: Building an Edge Database on SQLite with Glauber Costa of Turso

Bonus
0:00 / 27:46

About this episode

An edge database on SQLite for global apps: Glauber Costa of Turso on forking SQLite into libSQL and replicating data worldwide for low-latency reads.

———

Glauber Costa is a family man, with three kids at home. So he admits, that with a startup and kids, there is not much space for anything else. He made mention that the jump from 2-3 kids was hard, and we joked that he playing zone defense now over man to man. AS of this recording, he had already seen the Mario movie 3 times with his kids, and enjoys playing video games with them. But, his game to play is Civilizations, which he is highly addicted to.

Glauber comes from a heavy database and systems programming background, as does his co-founders. They noticed that the buyer persona of database tech is changing. More and more frontend developers or full stack developers were responsible for these decisions. After iterating on a few projects, they figured the pillar of their data edge solution... which was SQLLite.

This is the creation story of Turso.

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 Glauber Costa from Turso: https://www.codestory.co/episodes/s8-bonus-the-linux-kernel-maverick-rewriting-sqlite-in-rust-scaling-micro-databases-for-ai-agents-with-glauber-costa-co-founder-ceo-of-turso/



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

  • Drawing the MVP Line: Turso chose not to push SQLite inside serverless functions via WebAssembly at first. It built a more traditional database, accessed over HTTP and massively replicated, after weighing the options for about a month.
  • A Two-Month MVP: While Glauber was away after his daughter's premature birth, the team got an MVP to early users in about two months. His co-founder wrote the control plane in Go at a Rust-heavy shop, alongside tools like Fly.io and Vault.
  • Friction That Revealed the Persona: Private beta applicants had to fill out a form saying what they would use Turso for. Answers from 200 to 300 people clarified the use case and showed which feature requests could safely wait.
  • Scale by Dimension: Turso was built from day one to add locations and read capacity horizontally, but not to scale everything. Glauber argues that scaling nothing hurts robustness, while scaling everything could delay launch by two years.
  • Act on the Signal Sooner: Users said for months that the SQLite edge piece of the earlier product, ChiselStrike, interested them most. Glauber's biggest regret is not building a new product around it much sooner.

Frequently Asked Questions

What is Turso and what makes it an edge database?

Glauber Costa describes it simply: "Turso is a database for the edge." [02:49] It replicates data to many locations for last-mile latency advantages and is reachable over protocols like HTTP and WebSockets, which suits restricted edge compute environments.

Why is Turso built on SQLite?

Glauber explained, "the idea was that with SQLite, you can deploy everything locally." [06:10] If the data can then be distributed, developers run the same code locally, in production and at the edge, using a database light enough for resource-limited locations.

How long did it take to build the Turso MVP?

Glauber said, "It took around two months in total to just get something together, put in the hands" [08:46] of some early users. Work then began on a public release with a free tier that people could sign up for.

How did Turso decide what to build after the MVP?

Before opening up publicly, Turso ran a private beta with a form asking what people wanted to use it for. Glauber said that with hundreds of people "telling you this is what I want to do with that" [13:57], the use case becomes clear, and feature requests can be judged against that persona.

What mistake does Glauber Costa say his company made before Turso?

Glauber said one of the big mistakes in the company's previous iteration "was exactly not to jump in this direction sooner." [20:40] In hindsight, he wishes they had sunset the earlier project and built a new product to solve the edge problem from the start.

Media List 5000, Podcasts, Fall 2026