Database

CouchDB - A document database built for replication

databaseself-hostedstoragenosql

Most databases treat replication as an extra feature. CouchDB builds it into the model: documents are JSON, every change has a revision, and two copies can reconcile later without a constant connection. That makes it useful for mobile apps, intermittent links, and multi-site deployments where each location needs a local copy. It exposes an HTTP API, so debugging often means sending a request rather than starting a proprietary client. Views are defined with MapReduce functions, which takes some adjustment if you’re used to SQL indexes. It isn’t a drop-in choice for relational reporting. Where sync is part of the product rather than an afterthought, CouchDB’s design is still distinctive.

Links

Alternatives

  • MongoDB: Flexible documents with a different replication model and a paid enterprise tier.
  • PouchDB: Browser-side companion that syncs with CouchDB-compatible servers.
  • PostgreSQL: Better for relational queries and transactions, heavier to sync across devices.
  • Couchbase: Related roots but a different product with commercial editions.