SlideShare a Scribd company logo
Overcoming the
Performance Cost of
Streaming Transactions
Denis Rystsov
Staff Engineer
Denis Rystsov
■ Invented CASPaxos
■ Designed Redpanda transactions
■ Tested consistency of Cosmos DB
■ Love surfing in cold water
Staff Engineer
What is Redpanda?
What is Redpanda?
■ Modern streaming platform supporting Kafka protocol
■ Written in C++
■ Uses thread per core
■ Based on Seastar
What is Redpanda?
■ Specialized distributed replicated transactional storage
• append only writes
• sequential reads
• persistent cursors
• primitives for consumers cooperation
Scylla Summit 2022: Overcoming the Performance Cost of Streaming Transactions
Scylla Summit 2022: Overcoming the Performance Cost of Streaming Transactions
Transactions
■ All or nothing semantics for
• Write to multiple topics
• Consume-transform-produce loop
Scylla Summit 2022: Overcoming the Performance Cost of Streaming Transactions
■ its own topic (Redpanda)
■ its own table (Scylla)
Each service has
■ check balance
■ move money between a user’s own accounts
■ read a personalized ledger and update balance
■ check that an account have enough money before scheduling
a transfer to an another user
■ execute cross ledger transactions (Redpanda transactions)
■ NMSI: please just don’t conflict
■ SR: all updates are ordered
■ SI: all reads are ordered
Scylla Summit 2022: Overcoming the Performance Cost of Streaming Transactions
Money transfer between two random (out of 64) partitions
Total threads (num. clients x thread per client)
Redpanda
Money transfer between two random (out of 64) partitions
Total threads (num. clients x thread per client)
Redpanda
Kafka
Money transfer between two random (out of 64) partitions
Total threads (num. clients x thread per client)
Redpanda
Kafka
■ beginTransaction();
■ send("account1",...);
■ send("account2",...);
■ commitTransaction();
Add Topic to Txn
Add Topic to Txn
Add Topic to Txn
Add Topic to Txn
■ beginTransaction();
■ send("account1",...);
■ send("account2",...);
■ commitTransaction();
Send
Send
Send
Send
■ beginTransaction();
■ send("account1",...);
■ send("account2",...);
■ commitTransaction();
Commit
Commit
Commit
Commit
Redpanda optimization
■ Lets send() be eventually consistent
■ Validate that it’s fully replicated
during commit
■ Parallel commits
■ RAM over disk
Add Topic to Txn
Add Topic to Txn
Add Topic to Txn
Send
Send
Commit
Commit
Commit
Commit
Commit
Commit
Money transfer between two random (out of 64) partitions
Total threads (num. clients x thread per client)
Redpanda
Kafka
Thank you!
Stay in touch
@rystsov
denis@vectorized.io

More Related Content

PDF
Scylla Summit 2022: Learning Rust the Hard Way for a Production Kafka+ScyllaD...
PDF
Scylla Summit 2022: An Odyssey to ScyllaDB and Apache Kafka
PDF
Scylla Summit 2022: ORM and Query Building in Rust
PDF
Scylla Summit 2016: ScyllaDB, Present and Future
PPTX
Scylla Summit 2018: Cassandra and ScyllaDB at Yahoo! Japan
PDF
TiDB Introduction
PDF
TiDB DevCon 2020 Opening Keynote
PPTX
Scylla Summit 2019 Keynote - Avi Kivity
Scylla Summit 2022: Learning Rust the Hard Way for a Production Kafka+ScyllaD...
Scylla Summit 2022: An Odyssey to ScyllaDB and Apache Kafka
Scylla Summit 2022: ORM and Query Building in Rust
Scylla Summit 2016: ScyllaDB, Present and Future
Scylla Summit 2018: Cassandra and ScyllaDB at Yahoo! Japan
TiDB Introduction
TiDB DevCon 2020 Opening Keynote
Scylla Summit 2019 Keynote - Avi Kivity

What's hot (20)

PDF
Build real time stream processing applications using Apache Kafka
PDF
TiDB Introduction - San Francisco MySQL Meetup
PDF
Storing State Forever: Why It Can Be Good For Your Analytics
PDF
uReplicator: Uber Engineering’s Scalable, Robust Kafka Replicator
PDF
Stream processing with Apache Flink @ OfferUp
PDF
Keynote -- Percona Live Europe 2018
PDF
Should You Read Kafka as a Stream or in Batch? Should You Even Care? | Ido Na...
PDF
FOSDEM MySQL and Friends Devroom
PDF
TiDB at PayPay
PDF
Build intelligent, real-time applications using Machine Learning
PDF
Presto Summit 2018 - 02 - LinkedIn
PDF
Introducing TiDB - Percona Live Frankfurt
PDF
Introduction to Data Engineer and Data Pipeline at Credit OK
PDF
Hoodie: How (And Why) We built an analytical datastore on Spark
PDF
Scale Relational Database with NewSQL
PDF
About VisualDNA Architecture @ Rubyslava 2014
PDF
Low-latency data applications with Kafka and Agg indexes | Tino Tereshko, Fir...
PDF
A Brief Introduction of TiDB (Percona Live)
PPTX
RedisConf17 - Redfin - The Real Estate Brokerage and the In-memory Database
PPTX
Cloud native data platform
Build real time stream processing applications using Apache Kafka
TiDB Introduction - San Francisco MySQL Meetup
Storing State Forever: Why It Can Be Good For Your Analytics
uReplicator: Uber Engineering’s Scalable, Robust Kafka Replicator
Stream processing with Apache Flink @ OfferUp
Keynote -- Percona Live Europe 2018
Should You Read Kafka as a Stream or in Batch? Should You Even Care? | Ido Na...
FOSDEM MySQL and Friends Devroom
TiDB at PayPay
Build intelligent, real-time applications using Machine Learning
Presto Summit 2018 - 02 - LinkedIn
Introducing TiDB - Percona Live Frankfurt
Introduction to Data Engineer and Data Pipeline at Credit OK
Hoodie: How (And Why) We built an analytical datastore on Spark
Scale Relational Database with NewSQL
About VisualDNA Architecture @ Rubyslava 2014
Low-latency data applications with Kafka and Agg indexes | Tino Tereshko, Fir...
A Brief Introduction of TiDB (Percona Live)
RedisConf17 - Redfin - The Real Estate Brokerage and the In-memory Database
Cloud native data platform
Ad

Similar to Scylla Summit 2022: Overcoming the Performance Cost of Streaming Transactions (9)

PDF
Building resilient serverless systems with non-serverless components (Belfast)
PDF
Cassandra for the ops dos and donts
PDF
Microservices for a Streaming World
PPTX
Vitalii Bondarenko - “Azure real-time analytics and kappa architecture with K...
PPTX
Amazon rds
PDF
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
PDF
Building resilient serverless systems with non-serverless components - Cardif...
PDF
Cassandra vs. Redis
PPTX
Learn Cassandra at edureka!
Building resilient serverless systems with non-serverless components (Belfast)
Cassandra for the ops dos and donts
Microservices for a Streaming World
Vitalii Bondarenko - “Azure real-time analytics and kappa architecture with K...
Amazon rds
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Building resilient serverless systems with non-serverless components - Cardif...
Cassandra vs. Redis
Learn Cassandra at edureka!
Ad

More from ScyllaDB (20)

PDF
Understanding The True Cost of DynamoDB Webinar
PDF
Database Benchmarking for Performance Masterclass: Session 2 - Data Modeling ...
PDF
Database Benchmarking for Performance Masterclass: Session 1 - Benchmarking F...
PDF
New Ways to Reduce Database Costs with ScyllaDB
PDF
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
PDF
Powering a Billion Dreams: Scaling Meesho’s E-commerce Revolution with Scylla...
PDF
Leading a High-Stakes Database Migration
PDF
Achieving Extreme Scale with ScyllaDB: Tips & Tradeoffs
PDF
Securely Serving Millions of Boot Artifacts a Day by João Pedro Lima & Matt ...
PDF
How Agoda Scaled 50x Throughput with ScyllaDB by Worakarn Isaratham
PDF
How Yieldmo Cut Database Costs and Cloud Dependencies Fast by Todd Coleman
PDF
ScyllaDB: 10 Years and Beyond by Dor Laor
PDF
Reduce Your Cloud Spend with ScyllaDB by Tzach Livyatan
PDF
Migrating 50TB Data From a Home-Grown Database to ScyllaDB, Fast by Terence Liu
PDF
Vector Search with ScyllaDB by Szymon Wasik
PDF
Workload Prioritization: How to Balance Multiple Workloads in a Cluster by Fe...
PDF
Two Leading Approaches to Data Virtualization, and Which Scales Better? by Da...
PDF
Scaling a Beast: Lessons from 400x Growth in a High-Stakes Financial System b...
PDF
Object Storage in ScyllaDB by Ran Regev, ScyllaDB
PDF
Lessons Learned from Building a Serverless Notifications System by Srushith R...
Understanding The True Cost of DynamoDB Webinar
Database Benchmarking for Performance Masterclass: Session 2 - Data Modeling ...
Database Benchmarking for Performance Masterclass: Session 1 - Benchmarking F...
New Ways to Reduce Database Costs with ScyllaDB
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Powering a Billion Dreams: Scaling Meesho’s E-commerce Revolution with Scylla...
Leading a High-Stakes Database Migration
Achieving Extreme Scale with ScyllaDB: Tips & Tradeoffs
Securely Serving Millions of Boot Artifacts a Day by João Pedro Lima & Matt ...
How Agoda Scaled 50x Throughput with ScyllaDB by Worakarn Isaratham
How Yieldmo Cut Database Costs and Cloud Dependencies Fast by Todd Coleman
ScyllaDB: 10 Years and Beyond by Dor Laor
Reduce Your Cloud Spend with ScyllaDB by Tzach Livyatan
Migrating 50TB Data From a Home-Grown Database to ScyllaDB, Fast by Terence Liu
Vector Search with ScyllaDB by Szymon Wasik
Workload Prioritization: How to Balance Multiple Workloads in a Cluster by Fe...
Two Leading Approaches to Data Virtualization, and Which Scales Better? by Da...
Scaling a Beast: Lessons from 400x Growth in a High-Stakes Financial System b...
Object Storage in ScyllaDB by Ran Regev, ScyllaDB
Lessons Learned from Building a Serverless Notifications System by Srushith R...

Recently uploaded (20)

PDF
Network Security Unit 5.pdf for BCA BBA.
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
A Presentation on Artificial Intelligence
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPT
Teaching material agriculture food technology
PDF
Empathic Computing: Creating Shared Understanding
PDF
KodekX | Application Modernization Development
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
cuic standard and advanced reporting.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Cloud computing and distributed systems.
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Electronic commerce courselecture one. Pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
Network Security Unit 5.pdf for BCA BBA.
“AI and Expert System Decision Support & Business Intelligence Systems”
Digital-Transformation-Roadmap-for-Companies.pptx
A Presentation on Artificial Intelligence
Chapter 3 Spatial Domain Image Processing.pdf
Teaching material agriculture food technology
Empathic Computing: Creating Shared Understanding
KodekX | Application Modernization Development
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
NewMind AI Weekly Chronicles - August'25 Week I
Review of recent advances in non-invasive hemoglobin estimation
cuic standard and advanced reporting.pdf
Unlocking AI with Model Context Protocol (MCP)
Cloud computing and distributed systems.
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Dropbox Q2 2025 Financial Results & Investor Presentation
Electronic commerce courselecture one. Pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?

Scylla Summit 2022: Overcoming the Performance Cost of Streaming Transactions