Apache CouchDB
NoSQL databasecouchdb
Peer-based document store with quorum reads and writes and application-resolved revision conflicts.
- Provider
- default
- Kind
- NoSQL database
- Category
- Data
| property | type | values | required | kind default | this component |
|---|---|---|---|---|---|
| backupEnabled | boolean | — | no | false | inherited |
| backupRetentionDays | integer | — | no | — | inherited |
| bucketing | boolean | — | no | false | inherited |
| conflictResolution | enum | none | last-writer-wins | vector-clock | app-merge | no | — | ▸ app-merge |
| consistency | enum | eventual | tunable | strong | no | eventual | ▸ eventual |
| encryptionAtRest | boolean | — | no | false | inherited |
| instances | integer | — | no | — | inherited |
| managed | boolean | — | no | false | inherited |
| model | enum | key-value | wide-column | document | yes | — | ▸ document |
| partitionKey | string | — | no | — | inherited |
| quorumReads | integer | — | no | — | ▸ 2 |
| quorumWrites | integer | — | no | — | ▸ 2 |
| replication | enum | single-region | multi-region-single-leader | multi-region-multi-leader | leaderless | no | single-region | ▸ single-region |
| replicationFactor | integer | — | no | — | ▸ 3 |
| shards | integer | — | no | 2 | inherited |
| tombstoneTtlDays | integer | — | no | — | inherited |
| version | string | — | no | — | inherited |
Every rule whose selector covers this component's kind or its category. Whether a rule fires depends on the design: its properties, its edges and its groups.
multi-leader-store-without-conflict-policy
Multi-leader replication accepts concurrent writes in several regions. With no conflict resolution policy declared, divergent replicas are reconciled by accident rather than by design.
- — all of these hold:
- — the node's `replication` is "multi-region-multi-leader"
- — any of these hold:
- — the node's `conflictResolution` has no value
- — the node's `conflictResolution` is "none"
read-heavy-path-without-cache
The design states a read-heavy workload and application servers read this datastore directly, yet the design has no cache anywhere. Every read pays a database round trip.
- — all of these hold:
- — the design requirement `traffic.readWriteRatio` is a number greater than 10
- — the node has at least one synchronous incoming edge from an app-server
- — this does not hold:
- — the design contains a node of kind cache
nodes:
- { id: "couchdb", component: "couchdb" }ApsaraDB for HBasealibaba-apsaradb-hbaseApsaraDB for MongoDBalibaba-apsaradb-mongodbLindormalibaba-lindormTablestorealibaba-tablestoreAmazon CloudFront KeyValueStoreaws-cloudfront-keyvaluestoreAmazon Cognito Syncaws-cognito-syncAmazon DocumentDBaws-documentdbAWS HealthLakeaws-healthlakeAmazon Keyspaces (for Apache Cassandra)aws-keyspacesAmazon DynamoDBdynamodbAzure Cosmos DBazure-cosmos-dbAzure DocumentDBazure-documentdbAzure Health Data Servicesazure-health-data-servicesAzure Managed Instance for Apache Cassandraazure-managed-cassandraAzure Table Storageazure-table-storageWorkers KVcloudflare-workers-kvApache AccumuloaccumuloAerospike DatabaseaerospikeApache CassandracassandraCouchbasecouchbaseDataStax Enterprisedatastax-enterpriseFoundationDBfoundationdbApache HBasehbaseMarkLogic ServermarklogicMongoDBmongodbMongoDB Atlasmongodb-atlasGeneric NoSQL databasenosql-databaseNoSQL storenosql-storeOrientDBorientdbRavenDBravendbRethinkDBrethinkdbRiak KVriakScyllaDBscylladbTiKVtikvYDBydbGoogle Cloud BigtablebigtableGoogle Cloud FirestorefirestoreCloud Healthcare APIgoogle-cloud-healthcare-apiFirebase Realtime Databasegoogle-firebase-realtime-databaseFirestore in Datastore modegoogle-firestore-datastore-mode
and 6 more → NoSQL database page# yaml-language-server: $schema=../../schema/component.schema.json # Apache CouchDB: peer-based document store. A 3.x database is created with q=2 shards and n=3 # replicas read and written at quorum, and losing revisions are kept for the application to merge # ("Clustering: theory", "Replication and conflict model"). schemaVersion: "1" type: "component" id: "couchdb" kind: "nosql-database" provider: "default" docs: "https://docs.couchdb.org/en/stable/cluster/theory.html" defaults: model: "document" consistency: "eventual" replication: "single-region" replicationFactor: 3 conflictResolution: "app-merge" quorumReads: 2 quorumWrites: 2 properties: version: type: "string" shards: type: "integer" default: 2