A guide to ScyllaDB: Shard-per-Core Architecture and Low-Latency Engineering

How to work through this course

Seven modules, about eighty-five hours - but only if you have done the Cassandra course. If you have not, this course will mostly read as a list of differences from something you do not know, and the time is better spent there first.

The one habit to form: look at per-shard metrics, always. Not node CPU, not cluster averages - the per-shard reactor utilisation and the per-shard queue length. Almost every performance question in ScyllaDB becomes "which shard, and why that one?", and a node average is specifically the view that hides the answer. Get the ScyllaDB Monitoring Stack running in Module 1 and keep the per-shard dashboard open for the rest of the course.

Run with --overprovisioned 1 on any machine you do not own entirely. ScyllaDB assumes it has the hardware to itself: it pins threads, polls rather than sleeping, and reserves memory per shard. Without the flag, every latency number you measure on a laptop is a measurement of your laptop's contention rather than of ScyllaDB.

Three experiments carry the course.

The first, in Module 1, is the hot shard: drive traffic at a single partition and watch one shard pin at 100% while the node average sits at 25%. It takes ten minutes and it reframes everything else you will read.

The second, in Module 3, is shard-aware routing through a proxy. Measure p99 with a shard-aware driver connected directly, then the same driver behind a TCP proxy. The degradation is silent - no error, no warning - and this is the single most likely way a real deployment loses the performance it was sold.

The third, in Module 4, is workload prioritisation: run the interactive workload alone, add a heavy analytics scan and watch p99 collapse, then attach service levels and watch it recover. That feature has no Cassandra equivalent, it is the right answer to a common problem, and seeing it work is more convincing than reading that it does.

Resist the urge to tune. ScyllaDB auto-tunes memory, I/O scheduling and compaction concurrency, and scylla_setup measures your actual disk to calibrate the scheduler. The guidance really is to leave most settings alone, which is a different posture from Cassandra, where tuning is expected. If you find yourself reaching for a configuration knob, check first whether the per-shard metrics are telling you about a data model problem instead - they usually are.

Carry the Cassandra contracts across intact. gc_grace_seconds above the repair interval, or deleted data returns. NTP, or silent data loss from last-write-wins. Bounded partitions. Tombstones from nulls, collections and TTLs. None of this changed, and a C++ engine makes none of it less true. The one addition: the cache is ScyllaDB's own and starts cold, so a restarted node is up and slow, and your rolling restart waits on the hit ratio rather than on a status.

If you are evaluating a migration, treat Module 6's compatibility suite as the deliverable. "It is CQL-compatible" is accurate and is not a plan. The schema round-trips, the drivers both work with different performance, the secondary index semantics genuinely differ, and your runbooks parse command output that may have changed shape. The data move is sstableloader and an afternoon; the testing is the project.

What to skip on a first pass. Alternator, the DynamoDB-compatible API - genuinely interesting and a separate subject. CDC. Tablets beyond knowing they exist and change the scaling procedures. The Seastar framework internals beyond the shared-nothing model and the scheduler groups. ScyllaDB Cloud's specifics. And the full sctool surface beyond cluster, repair, backup and task.

Where to look things up. The official documentation is good and its architecture section is worth reading properly rather than skimming. The ScyllaDB engineering blog is unusually technical and the posts on Seastar, the scheduler and the cache explain the design better than the reference does. The ScyllaDB University courses are free and cover the same ground with exercises. And the scylla_setup output and io_properties.yaml are worth reading once, because seeing the database measure your disk and write down what it found is a good illustration of the whole philosophy.

One closing thought. ScyllaDB's pitch is that you get Cassandra's model with better latency, fewer knobs and denser nodes - and in this course's experience that is largely true, with one condition: you have to think in shards. The engineer who carries over Cassandra's node-level mental model will get most of the benefit and will not be able to diagnose the problems that remain, because the metric that explains them is the one they are not looking at. Learning to ask "which shard?" is most of what this course is for.

scylladb database