What is NoSQL?
NoSQL is a family name for databases that step away from the relational table model, usually to scale writes across machines or to fit a particular data shape.
Where did the term come from?
From a 2009 meetup about distributed, open-source, non-relational databases, at a time when large web companies were publishing papers on their internal storage systems. Those systems traded joins and strict transactions for the ability to spread huge data sets across thousands of cheap machines. Open-source projects inspired by them grew quickly, and "NoSQL" stuck as the label, later softened to "not only SQL" as people realised most systems need both.
What do CAP and BASE mean?
CAP says that when a network partition splits a distributed database, it must choose between consistency (every read sees the latest write) and availability (every request gets an answer). It cannot keep both during the partition. BASE (basically available, soft state, eventually consistent) describes the availability-first choice many NoSQL systems made, in contrast to the ACID guarantees of relational databases. Today most systems let you tune the trade-off per operation rather than fixing it globally.
How do the main families behave in production?
| Family | Operational character | Watch out for |
|---|---|---|
| Key-value in memory (Redis, Valkey) | Single-threaded per shard, very fast, persistence optional | Memory limits, eviction policy, fork pauses during snapshots |
| Key-value on disk (RocksDB-based) | Embedded or as a server, LSM-tree storage | Compaction load, write amplification |
| Document | Replica sets, optional sharding | Unbounded document growth, missing indexes |
| Wide-column (Cassandra, ScyllaDB) | Peer-to-peer ring, no single primary | Hot partitions, tombstones, repair schedules |
| Graph | Usually one primary plus replicas | Supernodes with millions of edges |
What is an LSM tree and why does it matter?
A log-structured merge tree is the storage layout behind many NoSQL engines, including Cassandra, ScyllaDB and RocksDB. Writes go to an in-memory table and an append-only log, then flush to sorted immutable files that background compaction merges. That makes writes very fast and sequential, which suits both NVMe and hard disks, but compaction uses CPU and disk bandwidth continuously. Leave headroom for it: a node whose disks are 90 percent busy with client traffic will fall behind on compaction and slow down later.
Where do NoSQL designs usually go wrong?
- Modelling data like relational tables and then needing joins the database cannot do.
- Choosing a partition key with few distinct values, so one node receives most traffic.
- Letting documents or rows grow without bound, such as an array of every event for a user.
- Assuming a read sees a write made a moment earlier when the consistency level does not promise it.
- Running a cluster of two, which cannot form a majority after a failure.
How do I check a cluster's health?
Each family has its own tools, and checking them weekly prevents surprises:
nodetool status && nodetool tablestats shop.events | grep -E 'Space used|SSTable count' valkey-cli --latency-history -i 10 valkey-cli INFO memory | grep -E 'used_memory_human|maxmemory_human|mem_fragmentation_ratio'
Look for nodes marked down, growing SSTable counts, rising latency and memory fragmentation above about 1.5.
Why run NoSQL on dedicated servers?
Because these engines are sensitive to noisy neighbours and love local NVMe. Compaction, snapshots and replication all compete for disk and CPU; a dedicated machine gives them predictable resources. A three-node wide-column cluster on ESSENTIAL-M machines, each with 12 and 2x 512 GB SSD NVMe, Soft RAID, costs $70.80 per node a month on unmetered European ports. In-memory stores need memory most: ESSENTIAL-5 brings 128 GB DDR4. Link cluster members with WireGuard, as we do not sell a private network. Our Apache Cassandra clusters, Redis servers and KeyDB servers pages give engine-specific sizing.
Is NoSQL still relevant?
Very much, in its niches. Caches, session stores, message brokers, event streams, search indexes and time-series data run on NoSQL engines at almost every large site. What changed is that relational databases absorbed many of the early arguments, so NoSQL is now chosen for specific workloads rather than as a general replacement. Our SQL or NoSQL and Non-relational database articles help with that choice.
Machines for NoSQL nodes
| Model | Processor | Cores | Memory | Drives | Port | Per month |
|---|---|---|---|---|---|---|
| ESSENTIAL-M | AMD Ryzen 9 9900X | 12 | 64 GB | 2x 512 GB SSD NVMe | 1 Gbps unmetered | $70.80 |
| ESSENTIAL-5 | AMD EPYC 7413 | 24 | 128 GB | 2x 960 GB SSD NVMe | 1 Gbps unmetered | $120.00 |
| ESSENTIAL-L | AMD Ryzen 9 9950X | 16 | 128 GB | 2x 960 GB SSD NVMe | 1 Gbps unmetered | $106.20 |
| BUSINESS-3 2026 | AMD EPYC 4465P | 12 | 64 GB | 2x 960 GB SSD NVMe | 3 Gbps unmetered | $184.20 |
Related pages
SQL or NoSQL
Comparing a declarative query language with the APIs of NoSQL stores: expressiveness, learning curve, tooling, migrations and the hybrid systems in between.
Read moreNon-relational database
Databases that store data as documents, keys, columns or graphs instead of fixed tables: how each model works and when it beats SQL.
Read moreApache Cassandra clusters
Run Apache Cassandra across data centres: Cassandra 5 features, snitch and replication per site, internode TLS over public ports, compaction and repairs.
Read moreKeyDB servers
Run KeyDB, the multithreaded Redis-compatible store, on bare metal: server threads, active replication between two primaries, sizing and project status.
Read moreQuestions and answers
What does NoSQL stand for?
It originally meant non-SQL and is now usually read as not only SQL: databases that store data in models other than relational tables.
What is the CAP theorem?
A result stating that during a network partition a distributed database must choose between consistency and availability. Many systems let you tune this per operation.
Why do NoSQL clusters need at least three nodes?
So that a majority of replicas can still agree after one node fails. Two-node clusters cannot tell a failure from a network split.
What is compaction in a NoSQL database?
Background merging of immutable data files in LSM-tree engines. It keeps reads fast but uses CPU and disk bandwidth continuously.
Do NoSQL databases need fast disks?
Disk-based engines benefit greatly from NVMe because compaction and replication add constant disk work. In-memory stores need RAM above all.