Cassandra 4.0 vs. Cassandra 3.11: Comparing Performance

TL;DR Cassandra 4.0 vs Cassandra 3.0 Results

Test Setup

Limitations of Our Testing

Throughputs and Latencies

  • “Real-life” (Gaussian) distribution, with sensible cache-hit ratios of 30–60%
  • Uniform distribution, with a close-to-zero cache hit ratio, which we’ll call “disk-intensive”
  • “In-memory” distribution, expected to yield almost 100% cache hits, which we’ll call “memory-intensive”
  • 100% writes
  • 100% reads
  • 50% writes and 50% reads

“Real-life” (Gaussian) Distribution

Mixed Workload — 50% reads and 50% writes

Uniform Distribution (low cache hit ratio)

Writes Workload — Only Writes

Reads Workload — Only Reads

Mixed Workload — 50% reads and 50% writes

In-Memory Distribution (high cache hit ratio)

Writes Workload — Only Writes

Reads Workload — Only Reads

Mixed Workload — 50% reads and 50% writes

Administrative Operations

Adding Nodes

One New Node

Doubling the Cluster Size

Replace Node

Summary

  • Cassandra 4.0 has better P99 latency than Cassandra 3.11 by up to 100x!
  • Cassandra 4.0 throughputs can be up to 33% greater compared to Cassandra 3.11, but more importantly, under an SLA of < 10 ms in P99 latency, Cassandra 4.0 can be 2x to 3x more performing.
  • Cassandra 4.0 speeds up streaming up to 34% faster than Cassandra 3.11

Stay Tuned

Appendix

Cassandra 3.11 configuration

Cassandra 4.0 configuration

Cassandra-stress parameters

  • Background loads were executed in the loop (so duration=5m is not a problem).
  • REPLICATION_FACTOR is 3.
  • COMPACTION_STRATEGY is SizeTieredCompactionStrategy unless stated otherwise.
  • loadgenerator_count is the number of generator machines (3 for these benchmarks).
  • DURATION_MINUTES is 10 for in-memory benchmarks.

--

--

--

The monstrously-fast NoSQL database.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Distributing Custom B2B iOS Apps privately

How to create a simple Web page using HTML and CSS.

Host WordPress for Free on Oracle Cloud

GIF showing four main components coming together to form WordPress

Learning Journal | Nearsoft Academy | Week 11

An Overview Of Radix Solution In Building Interoperable DeFi Dapps Faster

Which PowerShell Commands I should know for AZ-104 Certification?

How to Implement Graphs in Python

Explore the possibilities with hundreds of domain extensions — {link} -

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
ScyllaDB

ScyllaDB

The monstrously-fast NoSQL database.

More from Medium

Handling GPS streams of hundreds of thousands of trucks from 700 different systems

Cassandra Myth Busters: Is Coding on Cassandra Too Complicated?

gRPC-go - How are the bytes written in HTTP/2 streams?

Memory locality & the magic of B-Trees