ScyllaDB is a distributed wide-column NoSQL database written in C++ that implements the Apache Cassandra data model and query language while aiming for higher throughput per node and lower tail latency. Among database systems, it belongs to the family of partitioned, replicated, eventually consistent stores designed for very large write-heavy workloads.
The project was started in 2015 by the engineers who had earlier created the KVM hypervisor. Its central idea is that a database can use modern multicore hardware far more efficiently if it avoids shared state between CPU cores and manages memory, disk and network input and output itself instead of relying on the operating system and a garbage-collected runtime.
How ScyllaDB uses a shard-per-core architecture
ScyllaDB runs on the Seastar framework, an asynchronous C++ library that pins one thread to each CPU core and gives that thread exclusive ownership of a slice of the data, called a shard. Cores communicate through explicit message queues rather than locks, which removes most contention and context switching.
Each shard has its own memory pool, its own part of the cache and its own user-space I/O scheduler that balances queries, compaction and streaming. Because the database is written in C++, it has no garbage collection pauses, a common source of latency spikes in Java-based Cassandra deployments.
The table below outlines the main internal components and their purpose.
| Component | Role | Effect on performance |
|---|---|---|
| Seastar reactor | One event loop per core with no shared memory | Near-linear scaling with core count |
| Row cache | Database-managed cache instead of the OS page cache | Fewer copies and predictable eviction |
| I/O scheduler | Prioritizes foreground and background disk work | Keeps latency stable during compaction |
| Commit log and memtable | Durable sequential write path in memory | Fast writes before flushing to disk |
| SSTables | Immutable sorted files on disk | Efficient reads after compaction |
Data model, replication and consistency
ScyllaDB stores data in keyspaces and tables addressed by a partition key and an optional clustering key, exactly as Cassandra does. The partition key is hashed onto a token ring, and each partition is copied to a number of nodes set by the replication factor, typically three.
Clients choose a tunable consistency level for each request, so the same cluster can serve both fast, relaxed reads and stricter quorum reads. The following table lists the most common levels.
| Consistency level | Replicas that must respond | Typical use |
|---|---|---|
| ONE | 1 | Lowest latency, tolerates stale reads |
| QUORUM | 2 | Strong consistency when used for both reads and writes |
| LOCAL_QUORUM | 2 in the local data center | Multi-region clusters with local consistency |
| ALL | 3 | Rarely used, fails if any replica is down |
Recent versions use the Raft consensus protocol for schema and topology changes and introduced tablets, a mechanism that splits tables into smaller units that the cluster can move between nodes dynamically. Tablets make adding or removing nodes faster than the classic fixed token ranges. Lightweight transactions provide compare-and-set semantics for individual partitions, but ScyllaDB does not offer multi-partition ACID transactions.
ScyllaDB compared with related database systems
ScyllaDB is most often evaluated against Apache Cassandra and Amazon DynamoDB, because it speaks the Cassandra Query Language (CQL) and also offers a DynamoDB-compatible interface called Alternator. The comparison below highlights the practical differences.
| Aspect | ScyllaDB | Apache Cassandra | Amazon DynamoDB |
|---|---|---|---|
| Implementation | C++ on Seastar | Java on the JVM | Managed cloud service |
| Query interface | CQL and DynamoDB API | CQL | DynamoDB API |
| Garbage collection pauses | None | Possible, tuning needed | Hidden from the user |
| Deployment | Self-managed or managed cloud | Self-managed or third-party cloud | AWS only |
| Cost model | Per node or instance | Per node or instance | Per request or capacity unit |
Unlike relational systems such as PostgreSQL, ScyllaDB has no joins, no foreign keys and only limited secondary indexing. Unlike in-memory stores such as Redis, it is designed to hold terabytes of data per node on NVMe disks.
Typical workloads and design practice
ScyllaDB fits high-volume, low-latency workloads with predictable access patterns: time series, IoT telemetry, messaging, user profiles, fraud detection features and ad-tech event stores. Success depends on query-first data modeling, where tables are designed around the exact queries the application will run.
- Choose partition keys that spread load evenly and keep partitions well below hundreds of megabytes.
- Pick a compaction strategy that matches the workload, for example time-window compaction for time series data.
- Prefer local NVMe storage and enough cores, because the architecture scales with both.
- Use shard-aware drivers, which route each request directly to the owning core.
Workload prioritization lets operators assign service levels to different users, so analytical scans can share a cluster with latency-sensitive online traffic without dominating it.
Limitations and common mistakes
Most ScyllaDB problems come from data modeling errors rather than the engine itself. The table below summarizes frequent issues.
| Problem | Cause | Remedy |
|---|---|---|
| One node overloaded | Hot or very large partition | Redesign the partition key or add bucketing |
| Slow reads after many deletes | Accumulated tombstones | Adjust the data model and compaction settings |
| Queries rejected or slow | Use of ALLOW FILTERING on large tables | Create a table or view for that query |
| Inconsistent results | Mixed consistency levels on reads and writes | Use QUORUM or LOCAL_QUORUM on both sides |
Teams should also review the licensing model before adoption. In late 2024 the vendor announced a move from the open-source AGPL edition to a source-available license with a free tier, so terms for large self-managed clusters should be checked for the specific version in use.
A plain-language summary
ScyllaDB is a database built to store huge amounts of data across many computers and answer requests in a few milliseconds. It works like Apache Cassandra, so applications written for Cassandra can usually use it with little change.
Its special trick is that every processor core works on its own share of the data, like a team where each cashier has a dedicated line. Because nobody waits for anyone else, the system stays quick even under heavy traffic.
An example from practice
A messaging platform stores chat history in a Cassandra cluster of about 100 nodes and suffers from unpredictable read delays whenever Java garbage collection or compaction runs. During peak hours, the slowest 1 percent of requests take several hundred milliseconds, which users notice as lagging conversations.
The team migrates the same CQL schema to a ScyllaDB cluster of roughly 20 larger nodes with local NVMe disks, using shard-aware drivers and the same replication factor of three. Application code changes are limited to connection settings.
After the migration, tail latency for reads falls to a few tens of milliseconds at peak, and the smaller cluster reduces both hardware cost and the operational effort of routine repairs and upgrades. The team keeps its query-first data model unchanged, which shows that the engine replaced the bottleneck, not the design.