SlideShare a Scribd company logo
© 2023 New Relic, Inc. All rights reserved
Irene Rodríguez
Antón Rodríguez
Keep Your Kafka Cloud
Costs in Check with
Showbacks
© 2023 New Relic, Inc. All rights reserved
New Relic Ingests Telemetry Data
© 2023 New Relic, Inc. All rights reserved
Some production ingest numbers:
3.5TB/min 7.3B dpm
35 Kafka
clusters
3 seconds
© 2023 New Relic, Inc. All rights reserved
Ingest Pipelines @ New Relic
© 2023 New Relic, Inc. All rights reserved
What’s the problem?
Kafka client configurations impact the cluster
sizing and reliability
© 2023 New Relic, Inc. All rights reserved
How do we solve it?
Kafka showbacks: a
proportional part of
the cost of the
cluster is assigned
to teams using it
© 2023 New Relic, Inc. All rights reserved
Kafka cluster costs
The first step is to identify your Kafka cluster
costs and how to access them
programmatically
© 2023 New Relic, Inc. All rights reserved
How to assign Kafka cluster costs to teams?
1. Identify the cluster bottlenecks
2. Identify the client optimizations
minimizing those bottlenecks
3. Identify the Client metrics and how
they correlate with the Cluster
metrics
4. Assign the costs based on the Client
and Cluster metrics
© 2023 New Relic, Inc. All rights reserved
Algorithm for brokers / CKUs
● Unused CPU cost assigned to Kafka Platform
● The remaining CPU cost assigned to every
team based on the requests/s metric
● “linger.ms” client optimization to decrease
the cost
© 2023 New Relic, Inc. All rights reserved
Algorithm for network throughput
● The cluster cost is assigned proportionally to
the client network throughput
● Be careful! There are many hidden costs
● Producer compression can make a big
difference
© 2023 New Relic, Inc. All rights reserved
Algorithm for storage
● Unused disk cost is assigned to Kafka Platform
team
● We calculate the size of every topic and the
consumers of each topic.
● We assign the used disk cost to the consumers
proportionally to the size of the topic
● The goal is to choose the right value for topic
configuration retention.ms
© 2023 New Relic, Inc. All rights reserved
KafkaShowBackDemo: Architecture
© 2023 New Relic, Inc. All rights reserved
KafkaShowBackDemo: Data generated
Kafka Showback repository
© 2023 New Relic, Inc. All rights reserved
KafkaShowBackDemo: Dashboard cost
© 2023 New Relic, Inc. All rights reserved
KafkaShowBackDemo: CKUs cost
© 2023 New Relic, Inc. All rights reserved
KafkaShowBackDemo: CKUs cost
© 2023 New Relic, Inc. All rights reserved
KafkaShowBackDemo: CKUs cost
© 2023 New Relic, Inc. All rights reserved
KafkaShowBackDemo: Network write cost
© 2023 New Relic, Inc. All rights reserved
KafkaShowBackDemo: Request bytes
© 2023 New Relic, Inc. All rights reserved
KafkaShowBackDemo: Compression
© 2023 New Relic, Inc. All rights reserved
KafkaShowBackDemo: Network read cost
© 2023 New Relic, Inc. All rights reserved
KafkaShowBackDemo: Response bytes
© 2023 New Relic, Inc. All rights reserved
KafkaShowBackDemo: Storage
© 2023 New Relic, Inc. All rights reserved
Challenges
Standardize clientId Avoid bad patterns
Identify non related Kafka costs
© 2023 New Relic, Inc. All rights reserved
Next steps
● More Kafka flavours and Cloud providers
● Apply the same pattern to other platforms:
routing, CDC, etc.
● Auto-dynamically optimize configuration for
clients
● KIP-714: Client metrics and observability
© 2023 New Relic, Inc. All rights reserved
Thank you.
Irene: https://www.linkedin.com/in/irodriguezclaveria/
Anton: https://twitter.com/antonmry
https://github.com/antonmry/kafka-showbacks-demo

More Related Content

PDF
Let’s Make Your CFO Happy; A Practical Guide for Kafka Cost Reduction with El...
PDF
Save Money by Uncovering Kafka’s Hidden Cloud Costs
PDF
Making Apache Kafka Even Faster And More Scalable
PPTX
Putting Kafka Into Overdrive
PPTX
Building big data pipelines with Kafka and Kubernetes
PDF
Apache Kafka's Common Pitfalls & Intricacies: A Customer Support Perspective
PDF
Cost Dimensions of Kafka - Opti Owl Cloud
PDF
The Cost of Kafka’s High Availability on Cloud with Geetha Anne
Let’s Make Your CFO Happy; A Practical Guide for Kafka Cost Reduction with El...
Save Money by Uncovering Kafka’s Hidden Cloud Costs
Making Apache Kafka Even Faster And More Scalable
Putting Kafka Into Overdrive
Building big data pipelines with Kafka and Kubernetes
Apache Kafka's Common Pitfalls & Intricacies: A Customer Support Perspective
Cost Dimensions of Kafka - Opti Owl Cloud
The Cost of Kafka’s High Availability on Cloud with Geetha Anne

Similar to Keep Your Kafka Cloud Costs in Check with Showbacks (20)

PPTX
Monitoring Apache Kafka
ODP
Kafka aws
PPTX
Costing your Bug Data Operations
PDF
Kafka internals
PDF
Perfug 20-11-2019 - Kafka Performances
PPTX
Metrics are Not Enough: Monitoring Apache Kafka / Gwen Shapira (Confluent)
PDF
Why is My Stream Processing Job Slow? with Xavier Leaute
PDF
Fast Open Source Software - Without The Fury
PDF
Non-Kafkaesque Apache Kafka - Yottabyte 2018
PDF
Tokyo AK Meetup Speedtest - Share.pdf
PPTX
Building Data Streaming Platforms using OpenShift and Kafka
PDF
SFBigAnalytics_20190724: Monitor kafka like a Pro
PDF
Hadoop Summit San Jose 2014: Costing Your Big Data Operations
PPTX
Westpac Bank Tech Talk 1: Dive into Apache Kafka
PDF
Fundamentals of Apache Kafka
PPTX
Tutorial(release)
PDF
The Impact of Hardware and Software Version Changes on Apache Kafka Performan...
PDF
Kafka short
PPTX
AWS Cost Optimization Strategy
PPTX
Streaming in Practice - Putting Apache Kafka in Production
Monitoring Apache Kafka
Kafka aws
Costing your Bug Data Operations
Kafka internals
Perfug 20-11-2019 - Kafka Performances
Metrics are Not Enough: Monitoring Apache Kafka / Gwen Shapira (Confluent)
Why is My Stream Processing Job Slow? with Xavier Leaute
Fast Open Source Software - Without The Fury
Non-Kafkaesque Apache Kafka - Yottabyte 2018
Tokyo AK Meetup Speedtest - Share.pdf
Building Data Streaming Platforms using OpenShift and Kafka
SFBigAnalytics_20190724: Monitor kafka like a Pro
Hadoop Summit San Jose 2014: Costing Your Big Data Operations
Westpac Bank Tech Talk 1: Dive into Apache Kafka
Fundamentals of Apache Kafka
Tutorial(release)
The Impact of Hardware and Software Version Changes on Apache Kafka Performan...
Kafka short
AWS Cost Optimization Strategy
Streaming in Practice - Putting Apache Kafka in Production
Ad

More from HostedbyConfluent (20)

PDF
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
PDF
Renaming a Kafka Topic | Kafka Summit London
PDF
Evolution of NRT Data Ingestion Pipeline at Trendyol
PDF
Ensuring Kafka Service Resilience: A Dive into Health-Checking Techniques
PDF
Exactly-once Stream Processing with Arroyo and Kafka
PDF
Fish Plays Pokemon | Kafka Summit London
PDF
Tiered Storage 101 | Kafla Summit London
PDF
Building a Self-Service Stream Processing Portal: How And Why
PDF
From the Trenches: Improving Kafka Connect Source Connector Ingestion from 7 ...
PDF
Future with Zero Down-Time: End-to-end Resiliency with Chaos Engineering and ...
PDF
Navigating Private Network Connectivity Options for Kafka Clusters
PDF
Apache Flink: Building a Company-wide Self-service Streaming Data Platform
PDF
Explaining How Real-Time GenAI Works in a Noisy Pub
PDF
TL;DR Kafka Metrics | Kafka Summit London
PDF
A Window Into Your Kafka Streams Tasks | KSL
PDF
Mastering Kafka Producer Configs: A Guide to Optimizing Performance
PDF
Data Contracts Management: Schema Registry and Beyond
PDF
Code-First Approach: Crafting Efficient Flink Apps
PDF
Debezium vs. the World: An Overview of the CDC Ecosystem
PDF
Beyond Tiered Storage: Serverless Kafka with No Local Disks
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Renaming a Kafka Topic | Kafka Summit London
Evolution of NRT Data Ingestion Pipeline at Trendyol
Ensuring Kafka Service Resilience: A Dive into Health-Checking Techniques
Exactly-once Stream Processing with Arroyo and Kafka
Fish Plays Pokemon | Kafka Summit London
Tiered Storage 101 | Kafla Summit London
Building a Self-Service Stream Processing Portal: How And Why
From the Trenches: Improving Kafka Connect Source Connector Ingestion from 7 ...
Future with Zero Down-Time: End-to-end Resiliency with Chaos Engineering and ...
Navigating Private Network Connectivity Options for Kafka Clusters
Apache Flink: Building a Company-wide Self-service Streaming Data Platform
Explaining How Real-Time GenAI Works in a Noisy Pub
TL;DR Kafka Metrics | Kafka Summit London
A Window Into Your Kafka Streams Tasks | KSL
Mastering Kafka Producer Configs: A Guide to Optimizing Performance
Data Contracts Management: Schema Registry and Beyond
Code-First Approach: Crafting Efficient Flink Apps
Debezium vs. the World: An Overview of the CDC Ecosystem
Beyond Tiered Storage: Serverless Kafka with No Local Disks
Ad

Recently uploaded (20)

PDF
Encapsulation theory and applications.pdf
PDF
Empathic Computing: Creating Shared Understanding
PPTX
TLE Review Electricity (Electricity).pptx
PPTX
1. Introduction to Computer Programming.pptx
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Mushroom cultivation and it's methods.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
A Presentation on Artificial Intelligence
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
A comparative study of natural language inference in Swahili using monolingua...
PPTX
Spectroscopy.pptx food analysis technology
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Approach and Philosophy of On baking technology
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Programs and apps: productivity, graphics, security and other tools
Encapsulation theory and applications.pdf
Empathic Computing: Creating Shared Understanding
TLE Review Electricity (Electricity).pptx
1. Introduction to Computer Programming.pptx
Assigned Numbers - 2025 - Bluetooth® Document
Mushroom cultivation and it's methods.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
A Presentation on Artificial Intelligence
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Encapsulation_ Review paper, used for researhc scholars
Digital-Transformation-Roadmap-for-Companies.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
A comparative study of natural language inference in Swahili using monolingua...
Spectroscopy.pptx food analysis technology
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Approach and Philosophy of On baking technology
Unlocking AI with Model Context Protocol (MCP)
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Programs and apps: productivity, graphics, security and other tools

Keep Your Kafka Cloud Costs in Check with Showbacks

  • 1. © 2023 New Relic, Inc. All rights reserved Irene Rodríguez Antón Rodríguez Keep Your Kafka Cloud Costs in Check with Showbacks
  • 2. © 2023 New Relic, Inc. All rights reserved New Relic Ingests Telemetry Data
  • 3. © 2023 New Relic, Inc. All rights reserved Some production ingest numbers: 3.5TB/min 7.3B dpm 35 Kafka clusters 3 seconds
  • 4. © 2023 New Relic, Inc. All rights reserved Ingest Pipelines @ New Relic
  • 5. © 2023 New Relic, Inc. All rights reserved What’s the problem? Kafka client configurations impact the cluster sizing and reliability
  • 6. © 2023 New Relic, Inc. All rights reserved How do we solve it? Kafka showbacks: a proportional part of the cost of the cluster is assigned to teams using it
  • 7. © 2023 New Relic, Inc. All rights reserved Kafka cluster costs The first step is to identify your Kafka cluster costs and how to access them programmatically
  • 8. © 2023 New Relic, Inc. All rights reserved How to assign Kafka cluster costs to teams? 1. Identify the cluster bottlenecks 2. Identify the client optimizations minimizing those bottlenecks 3. Identify the Client metrics and how they correlate with the Cluster metrics 4. Assign the costs based on the Client and Cluster metrics
  • 9. © 2023 New Relic, Inc. All rights reserved Algorithm for brokers / CKUs ● Unused CPU cost assigned to Kafka Platform ● The remaining CPU cost assigned to every team based on the requests/s metric ● “linger.ms” client optimization to decrease the cost
  • 10. © 2023 New Relic, Inc. All rights reserved Algorithm for network throughput ● The cluster cost is assigned proportionally to the client network throughput ● Be careful! There are many hidden costs ● Producer compression can make a big difference
  • 11. © 2023 New Relic, Inc. All rights reserved Algorithm for storage ● Unused disk cost is assigned to Kafka Platform team ● We calculate the size of every topic and the consumers of each topic. ● We assign the used disk cost to the consumers proportionally to the size of the topic ● The goal is to choose the right value for topic configuration retention.ms
  • 12. © 2023 New Relic, Inc. All rights reserved KafkaShowBackDemo: Architecture
  • 13. © 2023 New Relic, Inc. All rights reserved KafkaShowBackDemo: Data generated Kafka Showback repository
  • 14. © 2023 New Relic, Inc. All rights reserved KafkaShowBackDemo: Dashboard cost
  • 15. © 2023 New Relic, Inc. All rights reserved KafkaShowBackDemo: CKUs cost
  • 16. © 2023 New Relic, Inc. All rights reserved KafkaShowBackDemo: CKUs cost
  • 17. © 2023 New Relic, Inc. All rights reserved KafkaShowBackDemo: CKUs cost
  • 18. © 2023 New Relic, Inc. All rights reserved KafkaShowBackDemo: Network write cost
  • 19. © 2023 New Relic, Inc. All rights reserved KafkaShowBackDemo: Request bytes
  • 20. © 2023 New Relic, Inc. All rights reserved KafkaShowBackDemo: Compression
  • 21. © 2023 New Relic, Inc. All rights reserved KafkaShowBackDemo: Network read cost
  • 22. © 2023 New Relic, Inc. All rights reserved KafkaShowBackDemo: Response bytes
  • 23. © 2023 New Relic, Inc. All rights reserved KafkaShowBackDemo: Storage
  • 24. © 2023 New Relic, Inc. All rights reserved Challenges Standardize clientId Avoid bad patterns Identify non related Kafka costs
  • 25. © 2023 New Relic, Inc. All rights reserved Next steps ● More Kafka flavours and Cloud providers ● Apply the same pattern to other platforms: routing, CDC, etc. ● Auto-dynamically optimize configuration for clients ● KIP-714: Client metrics and observability
  • 26. © 2023 New Relic, Inc. All rights reserved Thank you. Irene: https://www.linkedin.com/in/irodriguezclaveria/ Anton: https://twitter.com/antonmry https://github.com/antonmry/kafka-showbacks-demo