Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Turso 4 min read How-to mediumAdept

You can now migrate your existing databases to AWS

Turso paid-plan users can move database groups from Fly.io to AWS with new `turso group aws-migration info/start/abort` CLI commands; free-tier users have already been migrated. Migration is irreversible, keeps databases read-only with writes paused (usually under a minute, longer for 1 GB+), and drops features such as cross-database ATTACH, multi-DB schemas, server-side WebSockets, edge replicas and some extensions like sqlite-vss. Embedded replicas need their local files deleted and re-synced because the on-disk format and protocol differ. For remote writes, use execute/run paths without RETURNING, keep transactions short, avoid cached write statements, and reconnect and retry on stream errors, with SDK-specific guidance for JS, Python and Go or a switch to the new Turso Sync push-based packages.

Assumes: SQLite basicsTurso embedded replicas

Related posts

  • Turso Cloud on AWS is now available for everybody

    Turso easyNovice

    Turso Cloud is now generally available on AWS, built on an S3-native architecture where every commit is made durable on S3 Express One Zone and local disks serve as a read cache. Two factors make object storage viable for an OLTP write-ahead log: massive multitenancy, which lets commits be batched across many databases, and S3 Express latency in the single-digit milliseconds, comparable to fsync on EBS. Because each database is just a SQLite file on an always-up multitenant server, there are no cold starts, and databases can move between servers as load shifts. Paid Fly.io customers may stay or migrate; free-tier databases are auto-migrated to mapped AWS regions starting March 21.

  • Incident 2023-12-04: Data leak and loss in some free tier databases

    Turso mediumAdept

    A migration bug introduced on November 20 left 0.07% of Turso free-tier databases with an empty backup identifier, so they all pointed at a shared S3 prefix (s3://bucket//) instead of per-database paths. When scale-to-zero databases on fly.io couldn't be resumed and were recreated from backup, they restored from this shared location, leaking data across tenants. The fix re-ran the migration and restored each affected database from its correct December 1 backup, discarding later writes. Remediation includes control- and data-plane checks that backups match their database, stricter allowed configurations with self-healing, safer migrations and better security reporting channels.

  • Introducing Databases Anywhere with Turso Sync

    Turso mediumAdept

    Turso Sync lets local SQLite-compatible Turso databases, in Node or in the browser via WASM, sync with Turso Cloud through push, pull and sync-aware checkpoint methods layered on the standard database API. Local changes are pushed as row-level logical mutations with Last-Push-Wins conflict resolution, and a transform hook lets developers rewrite mutations for custom merge logic. Remote changes are pulled as physical pages, so replicas converge byte-for-byte on the cloud source of truth, which rules out peer-to-peer sync. The launch also adds per-table, per-operation token permissions and external JWKS/OIDC auth (Clerk and Auth0 in beta).

  • Migrating from PostgreSQL/MySQL to SQLite: When and How to Make the Switch

    Turso mediumAdept

    SQLite, especially via Turso Cloud, can replace PostgreSQL or MySQL for read-heavy, moderate-write workloads, trading complex-JOIN optimization, stored procedures, rich types and native replication for simpler operations, lower cost and local reads. Migration steps: dump schema and data as INSERT statements with pg_dump or mysqldump, translate types (SERIAL to INTEGER PRIMARY KEY, BOOLEAN to INTEGER, arrays to JSON text), convert to WAL mode and checkpoint, then import with `turso db import` or the Platform API upload flow (up to 20GB). Before cutover, compare query plans, load test at p50/p95/p99, and verify that write patterns tolerate SQLite's single-writer model or use Turso's MVCC-based BEGIN CONCURRENT.

  • The Future of Databases is Services

    Railway easyNovice

    Railway replaced its bespoke per-database Plugins (Postgres, Redis, Mongo, MySQL) with databases deployed as ordinary services, built from general-purpose primitives: ZFS-backed NVMe volumes, Docker image deploys, port-based TCP proxies per region, private networking, cross-service variable references, and a `${{ secret() }}` template function for generated passwords. Because TCP carries no Host header, the proxy routes by assigning a unique port per service. Combined into one-click templates, these primitives let users deploy any database, such as PGVector, Chroma, ClickHouse or Temporal, and Railway plans to add backups and high availability the same way.

The quest for software engineering knowledge.

Look:
Layout: