---
title: Production SQLite with Turso and libSQL
url: "https://aaronfrancis.com/videos/production-sqlite-with-turso-and-libsql"
path: "/videos/production-sqlite-with-turso-and-libsql"
type: video
author: Aaron Francis
published: 2024-06-14
topic: Databases
keywords: [sqlite, libsql, turso, glauber costa, database replication, vector search, serverless databases, websasm, user-defined functions, embedded replicas, http protocol sqlite, database server replication]
youtube_url: "https://www.youtube.com/watch?v=oSbdNY2n8Qk"
chunked: true
full_bytes: 81237
section_count: 18
full_url: "/videos/production-sqlite-with-turso-and-libsql/full.md"
site_index: "/llms.txt"
keyword_index: "/llms/keywords.txt"
---

# Production SQLite with Turso and libSQL

## Sections (79.3 KB full document — follow any link to read verbatim)

This page is long enough to hit agent truncation cliffs if fetched all at once. Pick the section matching your question below to read it 100% verbatim (< 35 KB each), or open the [full unsplit document (79.3 KB)](/videos/production-sqlite-with-turso-and-libsql/full.md).

### 1. Guest Introduction: Glauber Costa, CEO of Turso (00:01–02:12 · 2.5 KB)
Glauber Costa introduces his 20+ year career in software, from early Linux kernel contributions at Red Hat (2005–2020) through Scylla's NoSQL database development to founding Turso.
Keywords: `glauber costa`, `costa`, `glauber`, `guest introduction`, `ceo`, `turso`, `sqlite`, `introduction`
[Read section 1 verbatim](/videos/production-sqlite-with-turso-and-libsql/sections/1-guest-introduction-glauber-costa-ceo-of-turso.md)

### 2. Glauber's Journey from Red Hat to Scylla (02:12–04:54 · 3.7 KB)
Costa recounts his 8-year tenure at Scylla (2013–2021) building a NoSQL database despite having limited SQL knowledge, then briefly joining Datadog before seeking a smaller team environment.
Keywords: `red hat`, `nosql`, `journey`, `scylla`, `glauber journey`, `chatgpt`, `glauber`, `red`
[Read section 2 verbatim](/videos/production-sqlite-with-turso-and-libsql/sections/2-glaubers-journey-from-red-hat-to-scylla.md)

### 3. The Unorthodox Path to Databases (04:54–07:27 · 3.5 KB)
Costa partners with Pekka Enberg post-2021 at smaller companies and realizes building a database company is viable compared to proliferating JavaScript frameworks.
Keywords: `red hat`, `unorthodox path`, `path`, `unorthodox`, `databases`, `costa`, `red`, `hat`
[Read section 3 verbatim](/videos/production-sqlite-with-turso-and-libsql/sections/3-the-unorthodox-path-to-databases.md)

### 4. Founding Turso and the Shift from ChiselStrike (07:27–10:18 · 3.4 KB)
Costa and Enberg launch ChiselStrike in late 2021 to embed SQLite in Deno/runtime for persistent TypeScript applications, using SQLite as the obvious database choice.
Keywords: `chiselstrike`, `javascript`, `sqlite`, `founding turso`, `typescript`, `turso`, `shift`, `costa`
[Read section 4 verbatim](/videos/production-sqlite-with-turso-and-libsql/sections/4-founding-turso-and-the-shift-from-chiselstrike.md)

### 5. Forking SQLite: The Birth of libSQL (10:18–14:04 · 4.5 KB)
After a year of ChiselStrike development (Sept 2022), frustration over SQLite's closed contribution process and similar projects like DQLite inspire Costa and Enberg to fork SQLite into an open-contribution libSQL project.
Keywords: `sqlite`, `libsql`, `forking sqlite`, `dqlite`, `forking`, `birth`, `costa`, `sqlite plus`
[Read section 5 verbatim](/videos/production-sqlite-with-turso-and-libsql/sections/5-forking-sqlite-the-birth-of-libsql.md)

### 6. Challenges and Decisions in Forking SQLite (14:05–17:38 · 4.4 KB)
Costa and Enberg reject rewriting SQLite in Zig (learned from Scylla's costly C++ rewrite of Cassandra), instead release a libSQL manifesto without code to avoid being pigeonholed as 'SQLite plus X' and gain 1,500 GitHub stars in two weeks.
Keywords: `sqlite`, `forking sqlite`, `challenges`, `decisions`, `forking`, `costa`, `minimum amount`, `scylla`
[Read section 6 verbatim](/videos/production-sqlite-with-turso-and-libsql/sections/6-challenges-and-decisions-in-forking-sqlite.md)

### 7. The Importance of Community in Open Source Projects (17:39–20:51 · 4.0 KB)
LibSQL's explosive growth (1,500 stars vs ChiselStrike's 1,000 after a year) and 500 signups to a 'SQLite At The Edge' landing page convince Costa and Enberg to pivot the entire company toward Turso in February 2023.
Keywords: `open source`, `chisel strike`, `github`, `source projects`, `community`, `sqlite`, `importance`, `source`
[Read section 7 verbatim](/videos/production-sqlite-with-turso-and-libsql/sections/7-the-importance-of-community-in-open-source-proje.md)

### 8. Creating User-Defined Functions with WebAssembly (20:51–23:04 · 2.9 KB)
LibSQL adds WebAssembly-based user-defined functions (leveraging team expertise from Scylla) and native replication capabilities to extend SQLite functionality beyond the original ChiselStrike needs.
Keywords: `chisel strike`, `sqlite`, `webassembly`, `creating user-defined`, `user-defined functions`, `user-defined`, `functions`, `costa`
[Read section 8 verbatim](/videos/production-sqlite-with-turso-and-libsql/sections/8-creating-user-defined-functions-with-webassembly.md)

### 9. Introducing Native Replication in libSQL (23:04–28:12 · 6.8 KB)
By November–December 2022, Costa and Enberg implement native replication in libSQL as a core Turso feature, using an abstract Write Ahead Log layer with both SQLite and replication-specific implementations.
Keywords: `libsql`, `native replication`, `chisel strike`, `sqlite`, `native`, `replication`, `introducing native`, `webassembly`
[Read section 9 verbatim](/videos/production-sqlite-with-turso-and-libsql/sections/9-introducing-native-replication-in-libsql.md)

### 10. How Native Replication Works (28:13–32:44 · 5.5 KB)
LibSQL abstracts the Write Ahead Log, allowing custom implementations for replication while keeping on-disk format fully SQLite-compatible; shipped WAL segments replicate across instances.
Keywords: `write ahead`, `sqlite`, `native replication`, `replication`, `chisel strike`, `replication works`, `native`, `works`
[Read section 10 verbatim](/videos/production-sqlite-with-turso-and-libsql/sections/10-how-native-replication-works.md)

### 11. Implementing the HTTP Protocol for SQLite (32:45–36:26 · 4.5 KB)
LibSQL Server merges server functionality into libSQL, implementing an open HTTP protocol for stateless SQLite transactions across serverless environments like Cloudflare Workers.
Keywords: `sqlite`, `protocol`, `http protocol`, `http`, `libsql`, `costa`, `libsql server`, `implementation`
[Read section 11 verbatim](/videos/production-sqlite-with-turso-and-libsql/sections/11-implementing-the-http-protocol-for-sqlite.md)

### 12. Server to Server Replication Explained (36:27–39:10 · 3.5 KB)
Turso provides push-mode replication (server initiates) and poll-mode replication (replica requests delta), enabling serverless SQLite use with replicas positioned globally for latency optimization.
Keywords: `server replication`, `server`, `sqlite`, `libsql`, `replication`, `cloudflare workers`, `replication explained`, `explained`
[Read section 12 verbatim](/videos/production-sqlite-with-turso-and-libsql/sections/12-server-to-server-replication-explained.md)

### 13. Embedded Replicas: A Game-Changer for Local Reads (39:11–44:32 · 6.9 KB)
Embedded replicas allow SQLite clients to poll primary every ~200ms for delta sync, enabling local caching on ephemeral filesystems (Fly.io, Render, AWS EC2) without persistent volumes.
Keywords: `local reads`, `embedded replicas`, `sqlite`, `embedded`, `replicas`, `reads`, `game-changer`, `costa`
[Read section 13 verbatim](/videos/production-sqlite-with-turso-and-libsql/sections/13-embedded-replicas-a-game-changer-for-local-read.md)

### 14. Using Turso in Serverless Environments (44:33–49:33 · 7.0 KB)
Turso's HTTP mode is the primary deployment for serverless; embedded replicas suit long-running servers or edge environments with temporary storage but require network round-trips for writes.
Keywords: `serverless environments`, `turso`, `serverless`, `sqlite`, `javascript`, `environments`, `costa`, `embedded replicas`
[Read section 14 verbatim](/videos/production-sqlite-with-turso-and-libsql/sections/14-using-turso-in-serverless-environments.md)

### 15. Introducing Vector Search in libSQL (49:33–53:21 · 4.3 KB)
Pekka Enberg develops vector search extension for SQLite after rejecting generic AI features; community feedback emphasizes per-user database capability (100ms creation, millions possible) as natural for AI applications.
Keywords: `libsql`, `vector search`, `sqlite`, `vector`, `search`, `introducing vector`, `virtual table`, `costa`
[Read section 15 verbatim](/videos/production-sqlite-with-turso-and-libsql/sections/15-introducing-vector-search-in-libsql.md)

### 16. The Development Process of Vector Search (53:21–57:59 · 5.7 KB)
Implementing vector search in SQLite took two months; Costa credits Pekka's Linux kernel experience and hiring strong engineers unfamiliar with C, though SQLite's coding style and single-maintainer history make contributions challenging.
Keywords: `vector search`, `sqlite`, `vector`, `development process`, `search`, `process`, `costa`, `mobile device`
[Read section 16 verbatim](/videos/production-sqlite-with-turso-and-libsql/sections/16-the-development-process-of-vector-search.md)

### 17. What’s Next for libSQL and Turso? (57:59–1:01:52 · 4.7 KB)
Future priorities include offline writes (server as primary, Turso as distribution point), doubling down on SQLite-native initiatives, and moving vector search from beta to full release.
Keywords: `libsql`, `turso`, `sqlite`, `costa`, `pekka`, `pekka alone`, `offline writes`, `company`
[Read section 17 verbatim](/videos/production-sqlite-with-turso-and-libsql/sections/17-whats-next-for-libsql-and-turso.md)

### 18. How to Follow Glauber Costa on Twitter (1:01:53–1:02:52 · 1.6 KB)
Costa playfully discourages following co-founder Pekka Enberg (@penberg) in their internal follower competition, while promoting his own handle @GLCST and joking about Pekka's latency book.
Keywords: `follow glauber`, `costa`, `glauber`, `glauber costa`, `twitter`, `pekka`, `go`, `yall go`
[Read section 18 verbatim](/videos/production-sqlite-with-turso-and-libsql/sections/18-how-to-follow-glauber-costa-on-twitter.md)

---

## Related on aaronfrancis.com

- [Rewriting SQLite from scratch (yes, really)](/videos/rewriting-sqlite-from-scratch-yes-really) *(Video · 2025-08-08 · shared: turso, glauber costa, libsql)*
- [Vectors in SQLite! (with libSQL)](/videos/vectors-in-sqlite-with-libsql) *(Video · 2024-10-23 · shared: libsql, vector search, sqlite)*
- [Finding a brand for Database School](/newsletter/finding-a-brand-for-database-school) *(Newsletter · 2025-08-15 · shared: sqlite, glauber costa, turso)*
- [No social media before noon is working](/newsletter/no-social-media-before-noon-is-working) *(Newsletter · 2025-10-31 · shared: turso, sqlite)*
- [Teaching Databases, Writing PHP, and Independent Work with Aaron Francis](/podcast/teaching-databases-writing-php-and-independent-work-with-aaron-francis-a22e6b07) *(Podcast · 2024-08-27 · shared: sqlite, libsql)*

## Relevant Resources from Aaron Francis

- **[High Performance SQLite](https://databaseschool.com)** (overview on site: [/courses](/courses)): Comprehensive video course on running SQLite in production: WAL mode, concurrency, FTS5, strict tables, backups, and performance tuning.
- **[MySQL for Developers](https://databaseschool.com)** (overview on site: [/courses](/courses)): Full video course covering MySQL indexing, deferred joins, pagination, query plans, and schema design for application developers.

## Search aaronfrancis.com (2-Hop Static Keyword Index)

Pick the alphabetical shard matching any topic to find exact pages across all articles, newsletters, videos, talks, and podcast transcripts (every shard is < 40 KB):
[A-B](/llms/keywords/a-b.txt) · [C](/llms/keywords/c.txt) · [D-E](/llms/keywords/d-e.txt) · [F-G](/llms/keywords/f-g.txt) · [H-J](/llms/keywords/h-j.txt) · [K-L](/llms/keywords/k-l.txt) · [M-N](/llms/keywords/m-n.txt) · [O-P](/llms/keywords/o-p.txt) · [Q-R](/llms/keywords/q-r.txt) · [S](/llms/keywords/s.txt) · [T-Z](/llms/keywords/t-z.txt) · [Directory](/llms/keywords.txt) · [Site Map](/llms.txt)

Shards for this page's topics: `sqlite` ([S](/llms/keywords/s.txt)), `libsql` ([K-L](/llms/keywords/k-l.txt)), `turso` ([T-Z](/llms/keywords/t-z.txt)), `glauber costa` ([F-G](/llms/keywords/f-g.txt)).

## About Aaron Francis (Current Context)

Aaron Francis is VP of Marketing and Community at [Laravel](https://laravel.com), founder of [Try Hard Studios](https://tryhardstudios.com), creator of [Solo](https://soloterm.com), co-host of [Mostly Technical](/podcast), and author of [Mastering Postgres](/courses), [High Performance SQLite](/courses), [MySQL for Developers](/courses), and [Screencasting.com](/courses). Full bio: [/about](/about) · Current focus: [/now](/now).
