Back to articles
Turso Has a Free Edge SQLite Database That Puts Data Closer to Users
How-ToTools

Turso Has a Free Edge SQLite Database That Puts Data Closer to Users

via Dev.toAlex Spinov

Centralized databases add latency. Turso replicates your SQLite database to 35+ edge locations worldwide — your data is always close to your users. What Is Turso? Turso is built on libSQL (a fork of SQLite created by the Turso team). It takes SQLite and adds: Multi-region replication HTTP API (works from serverless/edge) Embedded replicas (sync to local SQLite) Branching (like git for databases) Free Tier 9GB total storage 500 databases 25 billion row reads/month 50 million row writes/month 3 locations Getting Started # Install CLI curl -sSfL https://get.tur.so/install.sh | bash turso auth login # Create database (replicated globally) turso db create my-app turso db show my-app --url # → libsql://my-app-username.turso.io # Create auth token turso db tokens create my-app Use with Drizzle ORM import { drizzle } from " drizzle-orm/libsql " ; const db = drizzle ({ connection : { url : process . env . TURSO_URL , authToken : process . env . TURSO_TOKEN , }, }); // Same Drizzle API — queries

Continue reading on Dev.to

Opens in a new tab

Read Full Article
3 views

Related Articles