SlideShare a Scribd company logo
Kafka Streams
Quando streams encontram tabelas
Cristiano Altmann
Arquiteto Software
https://www.linkedin.com/in/crisaltmann/
Matheus Alagia
Eng. de Computação
https://www.linkedin.com/in/matheusalagia/
https://ubots.com.br
“Data models are perhaps the most important
part of developing software, because they have
such a profound effect: not only on how the
software is written, but also on how we think
about the problem that we are solving.”
- Martin Kleppmann
Designing data-intensive applications
Microservices
Independent deploy
Low coupling
Horizontal Scalability
Technological choices
Business time
Independent teams
Technological
evolution
Resilient
Increasingly we build ecosystem
Microservices is really just distributed
systems!
The Hardest Part About Microservices:
Your Data
Common Patterns
● Shared database
● Database per service
● Event driven approaches
The beginning... Shared Database
serviceXserviceY
Database per service
serviceXserviceY
Event-driven architecture
S2
S3
S1S4
Message Broker
What is Streaming Processing?
“Is some kind of computation over a Data Stream. First and foremost, a data
stream is an abstraction representing an unbounded dataset. Unbounded means
infinite and ever growing.”
Kafka: The Definitive Guide
Stream processing is a programming paradigm...
Request-Response Batch ProcessingStreaming
Processing
Throughput
Latency
Stream-Processing Concepts
Time
Event time
Local state
Log append time
State
Processing time
External state
Time Windows
Slide window
Tumbling window
Hopping Window
Stream-Processing Concepts
Time
Event time
Local state
Log append time
State
Processing time
External state
Time Windows
Slide window
Tumbling window
Hopping Window
Stream-Processing Concepts
Time
Event time
Local state
Log append time
State
Processing time
External state
Time Windows
Slide window
Tumbling window
Hopping Window
Calculation of the time window
Size
Advance interval
How long remains updatable
Kafka Streams
The world always changes, and sometimes we are interested
in the events that caused those changes, whereas other
times we are interested in the current state of the world….
Stream-Table Duality
Systems that allow you to transition back and forth between
the two ways of looking at data are more powerful than
systems that support just one.
- Neha Narkhede (Kafka: The definitive guide)
Kafka vs Kafka Stream
● Distributed log
● High available
● ⅓ Fortune 500
● APIS:
○ Producer
○ Consumer
○ Connect
○ Streams
● Part of Kafka ecosystem
● Just a lib
● Simple API
● DSL
Stream-Processing Design Patterns
Single-Event Processing
FILTER
Code
External Lookup: Stream-Table Join
Processing with Local State
But sometimes we need state….
Moving the state to a database just push the
problem to another layer.
Mantra: Stateless
Service
Client
STATELESS
STATE STORAGE
??
?
Kafka Streams
Stateless is good!!
● Services start instantly
● Thread Safe
● Scaled out linearly
● Not shared state
Kafka Streams
Stream
Table
Stream
Kafka Streams
Join
● Stream - Stream
● Stream - Table
● Table - Table
Stream - Stream (Windowed-join)
Stream - Table
Kafka Streams
Kafka Streams
Kafka Streams
Stream-Processing Landscape
Kafka Streams
Obrigado!
Perguntas?

More Related Content

PPTX
Kubernetes + netflix oss
PDF
[WSO2Con USA 2018] Deploying Applications in K8S and Docker
PDF
Life of a startup - Sjoerd Mulder - Codemotion Amsterdam 2017
PDF
Stream Processing with Kafka and KSQL in Jupiter | Namit Mahuvakar, Jupiter
PPTX
Cloud Solution Day 2016: Service Mesh for Kubernetes
PDF
[WSO2Con USA 2018] Architecting for Container-native Environments
PDF
The evolving container landscape
PDF
Kubernetes: The evolution of distributed systems | DevNation Tech Talk
Kubernetes + netflix oss
[WSO2Con USA 2018] Deploying Applications in K8S and Docker
Life of a startup - Sjoerd Mulder - Codemotion Amsterdam 2017
Stream Processing with Kafka and KSQL in Jupiter | Namit Mahuvakar, Jupiter
Cloud Solution Day 2016: Service Mesh for Kubernetes
[WSO2Con USA 2018] Architecting for Container-native Environments
The evolving container landscape
Kubernetes: The evolution of distributed systems | DevNation Tech Talk

What's hot (20)

PDF
NATS vs HTTP
PDF
Defrag 2014 - Blend Web IDEs, Open Source and PaaS to Create and Deploy APIs
PDF
Loadbalancers: The fabric for your micro services
PDF
Modern Monitoring - SysAdminDay 2017
PDF
[WSO2Con USA 2018] Microservices, Containers, and Beyond
PPTX
Monoliths to Microservices: App Transformation - Jacksonville Workshop Slides
PDF
TechTalk - Building Serverless Applications with IBM Bluemix
PDF
Aptira presents OpenStack Load Balancing as a Service at Banglore India OSUG ...
PDF
stackconf 2021 | Prometheus in 2021 and beyond
PDF
The Service Mesh: It's about Traffic
PDF
Netflix and Containers: Not A Stranger Thing
PDF
Build your First IoT Application with IBM Watson IoT
PDF
MongoDB .local London 2019: The Tech Behind Connected Car
PDF
OpenStack MagnetoDB. Atlanta Summit 2014
PDF
Handle insane devices traffic using Google Cloud Platform - Andrea Ulisse - C...
PPTX
Running a Massively Parallel Self-serve Distributed Data System At Scale
PDF
Schemas Beyond The Edge
PDF
The what, why and how of knative
PDF
Dual write strategies for microservices
PDF
Modernization patterns to refactor a legacy application into event driven mic...
NATS vs HTTP
Defrag 2014 - Blend Web IDEs, Open Source and PaaS to Create and Deploy APIs
Loadbalancers: The fabric for your micro services
Modern Monitoring - SysAdminDay 2017
[WSO2Con USA 2018] Microservices, Containers, and Beyond
Monoliths to Microservices: App Transformation - Jacksonville Workshop Slides
TechTalk - Building Serverless Applications with IBM Bluemix
Aptira presents OpenStack Load Balancing as a Service at Banglore India OSUG ...
stackconf 2021 | Prometheus in 2021 and beyond
The Service Mesh: It's about Traffic
Netflix and Containers: Not A Stranger Thing
Build your First IoT Application with IBM Watson IoT
MongoDB .local London 2019: The Tech Behind Connected Car
OpenStack MagnetoDB. Atlanta Summit 2014
Handle insane devices traffic using Google Cloud Platform - Andrea Ulisse - C...
Running a Massively Parallel Self-serve Distributed Data System At Scale
Schemas Beyond The Edge
The what, why and how of knative
Dual write strategies for microservices
Modernization patterns to refactor a legacy application into event driven mic...
Ad

Similar to Kafka Streams (20)

PPTX
Debunking Six Common Myths in Stream Processing
PDF
Building Streaming And Fast Data Applications With Spark, Mesos, Akka, Cassan...
PDF
Voxxed Days Thesaloniki 2016 - Streaming Engines for Big Data
PDF
Voxxed days thessaloniki 21/10/2016 - Streaming Engines for Big Data
PDF
[Meetup ms] Kafka Streams
PDF
batbern43 Stream all Things: Patterns of Data Integration in Event Driven Sys...
PDF
Event Driven Architecture with a RESTful Microservices Architecture (Kyle Ben...
PDF
Now You See Me, Now You Compute: Building Event-Driven Architectures with Apa...
PPTX
Keystone event processing pipeline on a dockerized microservices architecture
PDF
The Netflix Way to deal with Big Data Problems
PPTX
Asynchronous micro-services and the unified log
PPTX
Kostas Tzoumas - Stream Processing with Apache Flink®
PPTX
Debunking Common Myths in Stream Processing
PDF
From Monoliths to Microservices - A Journey With Confluent With Gayathri Veal...
PDF
Apache Kafka vs. Integration Middleware (MQ, ETL, ESB)
PPTX
distributed system lab materials about ad
PPTX
Debunking Common Myths in Stream Processing
PDF
Create Your Future with z Systems Cloud
PDF
The Lyft data platform: Now and in the future
PDF
Lyft data Platform - 2019 slides
Debunking Six Common Myths in Stream Processing
Building Streaming And Fast Data Applications With Spark, Mesos, Akka, Cassan...
Voxxed Days Thesaloniki 2016 - Streaming Engines for Big Data
Voxxed days thessaloniki 21/10/2016 - Streaming Engines for Big Data
[Meetup ms] Kafka Streams
batbern43 Stream all Things: Patterns of Data Integration in Event Driven Sys...
Event Driven Architecture with a RESTful Microservices Architecture (Kyle Ben...
Now You See Me, Now You Compute: Building Event-Driven Architectures with Apa...
Keystone event processing pipeline on a dockerized microservices architecture
The Netflix Way to deal with Big Data Problems
Asynchronous micro-services and the unified log
Kostas Tzoumas - Stream Processing with Apache Flink®
Debunking Common Myths in Stream Processing
From Monoliths to Microservices - A Journey With Confluent With Gayathri Veal...
Apache Kafka vs. Integration Middleware (MQ, ETL, ESB)
distributed system lab materials about ad
Debunking Common Myths in Stream Processing
Create Your Future with z Systems Cloud
The Lyft data platform: Now and in the future
Lyft data Platform - 2019 slides
Ad

Recently uploaded (20)

PDF
medical staffing services at VALiNTRY
PDF
Digital Systems & Binary Numbers (comprehensive )
PPTX
AMADEUS TRAVEL AGENT SOFTWARE | AMADEUS TICKETING SYSTEM
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
Patient Appointment Booking in Odoo with online payment
PPTX
Reimagine Home Health with the Power of Agentic AI​
DOCX
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
PDF
Salesforce Agentforce AI Implementation.pdf
PDF
Cost to Outsource Software Development in 2025
PDF
Complete Guide to Website Development in Malaysia for SMEs
PPTX
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
PPTX
Oracle Fusion HCM Cloud Demo for Beginners
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PPTX
L1 - Introduction to python Backend.pptx
PDF
iTop VPN 6.5.0 Crack + License Key 2025 (Premium Version)
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PPTX
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Tally Prime Crack Download New Version 5.1 [2025] (License Key Free
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
medical staffing services at VALiNTRY
Digital Systems & Binary Numbers (comprehensive )
AMADEUS TRAVEL AGENT SOFTWARE | AMADEUS TICKETING SYSTEM
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Patient Appointment Booking in Odoo with online payment
Reimagine Home Health with the Power of Agentic AI​
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
Salesforce Agentforce AI Implementation.pdf
Cost to Outsource Software Development in 2025
Complete Guide to Website Development in Malaysia for SMEs
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
Oracle Fusion HCM Cloud Demo for Beginners
Odoo Companies in India – Driving Business Transformation.pdf
L1 - Introduction to python Backend.pptx
iTop VPN 6.5.0 Crack + License Key 2025 (Premium Version)
wealthsignaloriginal-com-DS-text-... (1).pdf
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Tally Prime Crack Download New Version 5.1 [2025] (License Key Free
Adobe Illustrator 28.6 Crack My Vision of Vector Design

Kafka Streams