Hartmut Armbruster
Maximising Cassandra's Potential: Tips on Schema, Queries, Parallel Access, and Reactive Programming
#1about 2 minutes
Designing a high-performance social media feed backend
The goal is to design a backend and data layer for a social platform feed that responds in under 10 milliseconds at massive scale.
#2about 2 minutes
Defining functional requirements for the social feed
Key features include pinned pagination to handle real-time updates and an endless scroll, supported by core data entities like posts and users.
#3about 2 minutes
Understanding Cassandra's query-first data modeling
Unlike relational databases, Cassandra requires designing your data model based on specific query patterns due to its lack of joins and limited indexing.
#4about 3 minutes
Defining access patterns and the initial post schema
The first step in schema design is defining the five core query patterns and creating the main posts table with a feed ID partition key.
#5about 4 minutes
Using time-based ULIDs for efficient pagination
Using universally unique lexicographically sortable identifiers (ULIDs) as clustering keys enables efficient, time-based pagination without needing slow offsets.
#6about 3 minutes
Optimizing counts and the initial sequential process
The initial design avoids slow SELECT COUNT queries by using a LIMIT, but the sequential process flow is still highly inefficient, requiring 81 queries per page.
#7about 6 minutes
Iterative refinement through schema and process changes
The design is iteratively improved by merging tables, introducing parallelism, and modifying the schema to enable efficient bulk data fetching with IN clauses.
#8about 6 minutes
Implementing the flow with a reactive programming stack
A non-blocking, reactive stack using Kotlin, Quarkus, and Mutiny is chosen to efficiently orchestrate the parallel database queries required by Cassandra.
#9about 2 minutes
Achieving sub-4ms response times with optimization
An OpenTelemetry trace demonstrates the final implementation achieving a 3.72 millisecond response time for the complex feed API request.
#10about 3 minutes
Understanding the complexities and trade-offs of Cassandra
Cassandra introduces significant operational complexity, including data denormalization and difficult migrations, making it a choice for massive scale rather than general use.
Related jobs
Jobs that call for the skills explored in this talk.
Hubert Burda Media
München, Germany
€80-95K
Intermediate
Senior
JavaScript
Node.js
+1
Matching moments
05:12 MIN
How to build structure and culture without killing agility
From Data Keeper to Culture Shaper: The Evolution of HR Across Growth Stages
04:57 MIN
Increasing the value of talk recordings post-event
Cat Herding with Lions and Tigers - Christian Heilmann
03:34 MIN
The business case for sustainable high performance
Sustainable High Performance: Build It or Pay the Price
03:31 MIN
The value of progressive enhancement and semantic HTML
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
02:33 MIN
Why you might not need JavaScript for everything
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
02:44 MIN
Rapid-fire thoughts on the future of work
What 2025 Taught Us: A Year-End Special with Hung Lee
02:49 MIN
Using AI to overcome challenges in systems programming
AI in the Open and in Browsers - Tarek Ziadé
05:17 MIN
Shifting from traditional CVs to skill-based talent management
From Data Keeper to Culture Shaper: The Evolution of HR Across Growth Stages
Featured Partners
Related Videos
Database Magic behind 40 Million operations/s
Jürgen Pilz
Scaling: from 0 to 20 million users
Josip Stuhli
The Rise of Reactive Microservices
David Leitner
Is reactive the new black? Imperative vs. reactive programming with Quarkus
Tatiana Chervova
Single Server, Global Reach: Running a Worldwide Marketplace on Bare Metal in a Cloud-Dominated World
Jens Happe
Development of reactive applications with Quarkus
Niklas Heidloff
How to Destroy a Monolith?
Babette Wagner
In-Memory Computing - The Big Picture
Markus Kett
Related Articles
View all articles



From learning to earning
Jobs that call for the skills explored in this talk.

Visonum GmbH
Remote
Junior
Intermediate
React
Redux
TypeScript


SMG Swiss Marketplace Group
Canton de Valbonne, France
Senior


Confideck GmbH
Vienna, Austria
Remote
Intermediate
Senior
Node.js
MongoDB
TypeScript

Twin.Link GmbH
Osnabrück, Germany
Intermediate
Senior
React
TypeScript

trivago
Düsseldorf, Germany
Senior
MySQL
Kafka
Python
Google BigQuery
Google Cloud Platform

ROSEN Technology and Research Center GmbH
Osnabrück, Germany
Senior
React
DevOps
Next.js
TypeScript
Cloud (AWS/Google/Azure)

Cloudera
Barcelona, Spain
Remote
Senior
Java
Spark
Python