Recommendation

从熟悉的 PostgreSQL 路线开始;在应用确实受益于按需计算与分支时评估 Neon。

确认工作负载是否真有空闲周期和突发特征;不要为标签而放弃稳定的数据库连接模型。12

适用范围: Teams with intermittent, preview-heavy, unpredictable, edge-native, or justified multi-region database workloads

Main trade-off

按需扩缩降低闲置成本,却可能引入冷启动、连接与性能可预测性问题。1235

选择标准

按真实约束逐项判断,不要只比较功能列表。

  1. Engine semantics

    Choose PostgreSQL, SQLite-family, or distributed SQL behavior before comparing elastic service features.12

  2. Idle and burst shape

    Measure capacity floor, ceiling, scale-to-zero, resume latency, retention, and concurrency against real traffic.12

  3. Runtime and connections

    Verify drivers, protocols, pooling, connection limits, transaction behavior, and runtime compatibility.12

  4. Recovery and geography

    Set backup, restore, durability, region, latency, locality, and failure-tolerance requirements.5

适用路线

这些条件会改变默认答案;请在作出承诺前逐项验证。

You need elastic PostgreSQL

Evaluate Neon.

It preserves PostgreSQL compatibility while separating compute and storage and supporting suspension and branching.

Verify: Validate resume latency, connections, capacity, retention, regions, recovery, and cost with the production workload.12

SQLite and application locality are intentional

Evaluate Turso.

A SQLite-family platform can fit application-adjacent and distributed read patterns without pretending to be PostgreSQL.

Verify: PostgreSQL semantics or incompatible topology, limits, regions, or operational requirements should move the choice.12

The application is committed to Workers

Evaluate Cloudflare D1.

Bindings and managed SQLite can simplify a Cloudflare-native application.

Verify: Runtime portability, incompatible concurrency or transaction behavior, and D1 limits are hard boundaries.1234

Multi-region SQL is required

Evaluate CockroachDB.

Distributed SQL and failure tolerance can serve systems with justified locality and availability obligations.

Verify: A simpler single-region PostgreSQL or SQLite service is preferable when it meets latency, availability, and scale needs.125

边界: Conventional managed databases remain valid when predictable always-on capacity is simpler and cheaper. Serverless Compute owns code execution, not database semantics.

关键差异

把真正会改变决策的边界单独比较。

Engine
PostgreSQL, SQLite-family, and distributed SQL differ in syntax, extensions, transactions, and migration paths.2
Elasticity
Capacity floors, scale-to-zero, resume, concurrency, and retention behavior determine workload fit.12
Topology
Single-region, edge-integrated, replicated, and distributed-transaction systems make different latency and consistency choices.5
Economics
Request, compute, storage, transfer, retention, and minimum capacity must be modeled from actual usage.1

官方资源

官方文档与继续决策的正式路径。

来源

支撑页面关键主张的资料。

  1. 1
    Neon scale to zero

    Neon · Accessed Official

  2. 2
    Turso introduction

    Turso · Accessed Official

  3. 3
    Cloudflare D1 documentation

    Cloudflare · Accessed Official

  4. 4
    Cloudflare D1 limits

    Cloudflare · Accessed Official

  5. 5
    CockroachDB Cloud documentation

    Cockroach Labs · Accessed Official