Picking the Right Database
There are three main aspects to consider when picking a document-based database. These are consistency, availability, and partition tolerance, as defined by the CAP theorem.[80] Since these goals are at odds with each other, when picking the data store you’ll have to decide which two are most important to you.
Consistency
When we have consistency, each client has the same view of the data. This aspect comes into play when you have a database cluster with multiple nodes. In a consistent database, each node is guaranteed to have the same view of the data.
Some databases, such as CouchDB,[81] provide eventual consistency. This means that while each node in the cluster is self-consistent, it’s not guaranteed to be serving ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access