SlideShare a Scribd company logo
5
Most read
8
Most read
Building Event Streaming
Microservices with Spring Boot
and Apache Kafka
Jan Svoboda, Solution Engineer, May 2021
Jan Svoboda
https://www.linkedin.com/in/svobodajan/
• Confluent, Solutions Engineer 2020 - now
• Event Streaming, Event-Driven Microservices
• Apache Kafka, Kafka Streams
• Pivotal, Platform Architect, 2016 - 2020
• PaaS, Microservices
• Cloud Foundry, Spring, Rabbit MQ
• IBM, Solutions Architect, 2011 - 2016
• DevOps, Agile
• Bluemix, Rational
Agenda
3
Motivation
My journey to learning Kafka
Spring Microservices Architecture
Why Spring + Kafka = ♥
Events Streaming Microservices Concepts
Look Ma No Hands!
Event Sourcing and Data Liberation
Removing Database Dependency
Microservices Decoupling
Integration Pattern
State Caching
Storing State of a Microservice
Demo
See it to believe it...
My Motivation for Kafka and
Microservices
Why should a microservices developer care about learning Kafka?
Building Microservices aka Cloud Native Applications
Modernizing Legacy Applications with New Technology Stack
• 3-Layer Model-View-Controller Pattern has been very popular last 15 years
• Organizations look for migration shortcuts (no budget=no fun)
• New Toy Syndrome (just buy new technology and we are done…)
5
App
PaaS
D
B
UI
UI
App
Service Reg.
LB
My session from Cloud Foundry Summit https://www.youtube.com/watch?v=9moTgBiEauE
What is your Microservices Journey?
6
James Watters (Pivotal SVP), Kafka Summit 2019 Keynote, https://youtu.be/9I3CDfHKfNY?t=582
● Stage 1 -> Strangling the Monolith
○ DB based integration
● Stage 2-> Provide Independent
Data Sources
○ REST based integration
● Stage 3 -> Build Event Streaming
○ Kafka based integration
Spring ♥Kafka
Like Peanut Butter and Jelly...
Spring? Spring Kafka? Spring Cloud Services?
8
● Spring Kafka -> provides a
core Kafka libraries
● Spring Cloud Stream +
Kafka Binders -> provides
an abstraction for building
Kafka pipelines
● Spring Integration ->
provides Kafka as an
integration adapter (EIP)
https://spring.io/projects/spring-cloud-stream
https://spring.io/blog/2015/11/29/how-not-to-
hate-spring-in-2016
(Re)Building Spring based
Microservices with Kafka
Look Ma, No Hands!
Demo Application - Architecture and Dataflow
• Spring Boot (2 jars)
• Apache Kafka (2 topics)
• Spring Cloud Streams + Kafka
Streams Binder (RocksDB as a
state store)
Jan:Google,http://google.com
Jan:Google,http://google.com
JanGoogle: Google, http://google.com
JanGoogle,http://google.com
https://github.com/griga23/bookmarksDemo
Event Streaming Microservices
Architecture Patterns
Getting hands dirty...
1. Event Sourcing - Removing Database
Dependency
My Data Liberation
● From Data sourcing to Event sourcing
● From synchronous Request/Reply to asynchronous Publish/Subscribe
● Store the latest key/values in Kafka Streams State Store
● Use Kafka Streams Interactive Queries to query the State Store
● Make data free for everyone to read
https://docs.confluent.io/platform/current/streams/developer-guide/interactive-queries.html
=>
2. CQRS - Microservices Decoupling
Command Query Responsibility
Segregation
● Pattern separates read and
update operations for a data
store.
● Implementing CQRS can
maximize performance,
scalability, and security.
● Allows a system to better
evolve over time and prevents
update commands from causing
merge conflicts at the domain
level.
https://docs.microsoft.com/en-
us/azure/architecture/patterns/cqrs
3. Scaling – Stateful Microservices
• Multiple State Stores with
different partitions
• HTTP REST calls to provide State
Stores inter communication
Jan:Google,http://google.com
Jan:Yahoo,http://yahoo.com
JanGoogle:Google,http://google.com
JanYahoo:Yahoo,http://yahoo.com
JanGoogle:Google,http://google.co
m
JanYahoo:Yahoo,http://yahooo.co
m
https://docs.confluent.io/platform/current/streams/developer-guide/interactive-queries.html#querying-remote-state-stores-for-the-entire-app
4. Reverse Proxy – Routing to the Right State Store
https://medium.com/bakdata/queryable-kafka-topics-with-kafka-streams-8d2cca9de33f
• Spring Cloud Gateway for
incoming HTTP traffic to redirect
to proper State Store
• State Store Host Awareness
Jan:Google,http://google.com
Jan:Google
JanYahoo:Yahoo,http://yahoo.com
Demo
https://github.com/griga23/bookmarksDemo
#CONFLUENTSKO2021
Thank you!
jsvoboda@confliuent.io

More Related Content

What's hot (20)

PPTX
“Alexa, be quiet!”: End-to-end near-real time model building and evaluation i...
Flink Forward
 
PPSX
Cloud Architecture - Multi Cloud, Edge, On-Premise
Araf Karsh Hamid
 
PDF
OpenTelemetry Introduction
DimitrisFinas1
 
PDF
Best Practices for Middleware and Integration Architecture Modernization with...
Claus Ibsen
 
PPTX
API Management Part 1 - An Introduction to Azure API Management
BizTalk360
 
PDF
Building a fully managed stream processing platform on Flink at scale for Lin...
Flink Forward
 
PDF
Elastic SIEM (Endpoint Security)
Kangaroot
 
PDF
ksqlDB - Stream Processing simplified!
Guido Schmutz
 
PDF
Innovation morning power platform
Claudia Angelelli
 
PPT
Chapter 11 data-compress (1)
jeffynoiinaja
 
PDF
The Migration to Event-Driven Microservices (Adam Bellemare, Flipp) Kafka Sum...
confluent
 
PPTX
Migration d'une Architecture Microservice vers une Architecture Event-Driven ...
Daniel Rene FOUOMENE PEWO
 
PPTX
Exposing services with Azure API Management
Callon Campbell
 
PDF
Kafka Streams: What it is, and how to use it?
confluent
 
PDF
Service Mesh with Apache Kafka, Kubernetes, Envoy, Istio and Linkerd
Kai Wähner
 
PDF
WSO2 API microgateway introduction
Chanaka Fernando
 
PDF
Microservices Architectures: Become a Unicorn like Netflix, Twitter and Hailo
gjuljo
 
PDF
OpenSearch.pdf
Abhi Jain
 
PPTX
Building Modern Data Platform with Microsoft Azure
Dmitry Anoshin
 
PPSX
Microservices Architecture - Cloud Native Apps
Araf Karsh Hamid
 
“Alexa, be quiet!”: End-to-end near-real time model building and evaluation i...
Flink Forward
 
Cloud Architecture - Multi Cloud, Edge, On-Premise
Araf Karsh Hamid
 
OpenTelemetry Introduction
DimitrisFinas1
 
Best Practices for Middleware and Integration Architecture Modernization with...
Claus Ibsen
 
API Management Part 1 - An Introduction to Azure API Management
BizTalk360
 
Building a fully managed stream processing platform on Flink at scale for Lin...
Flink Forward
 
Elastic SIEM (Endpoint Security)
Kangaroot
 
ksqlDB - Stream Processing simplified!
Guido Schmutz
 
Innovation morning power platform
Claudia Angelelli
 
Chapter 11 data-compress (1)
jeffynoiinaja
 
The Migration to Event-Driven Microservices (Adam Bellemare, Flipp) Kafka Sum...
confluent
 
Migration d'une Architecture Microservice vers une Architecture Event-Driven ...
Daniel Rene FOUOMENE PEWO
 
Exposing services with Azure API Management
Callon Campbell
 
Kafka Streams: What it is, and how to use it?
confluent
 
Service Mesh with Apache Kafka, Kubernetes, Envoy, Istio and Linkerd
Kai Wähner
 
WSO2 API microgateway introduction
Chanaka Fernando
 
Microservices Architectures: Become a Unicorn like Netflix, Twitter and Hailo
gjuljo
 
OpenSearch.pdf
Abhi Jain
 
Building Modern Data Platform with Microsoft Azure
Dmitry Anoshin
 
Microservices Architecture - Cloud Native Apps
Araf Karsh Hamid
 

Similar to Building Event Streaming Microservices with Spring Boot and Apache Kafka | Jan Svoboda, Confluent (20)

PDF
James Watters Kafka Summit NYC 2019 Keynote
James Watters
 
PDF
Stateful Microservices with Apache Kafka and Spring Cloud Stream with Jan Svo...
HostedbyConfluent
 
PPTX
Kafka Summit NYC 2017 - Cloud Native Data Streaming Microservices with Spring...
confluent
 
PDF
Event driven microservices
Anthony Martin
 
PDF
Building Event-Driven (Micro)Services with Apache Kafka
Guido Schmutz
 
PDF
Building event-driven (Micro)Services with Apache Kafka
Guido Schmutz
 
PDF
Building event-driven (Micro)Services with Apache Kafka Ecosystem
Guido Schmutz
 
PDF
James Watters, Pivotal | Kafka Summit NYC 2019 Keynote (Spring Boot+Kafka: Th...
confluent
 
PDF
Microservices with Kafka Ecosystem
Guido Schmutz
 
PDF
Building Event Driven (Micro)services with Apache Kafka
Guido Schmutz
 
PDF
Building event-driven Microservices with Kafka Ecosystem
Guido Schmutz
 
PDF
Building Event Driven (Micro)services with Apache Kafka
Guido Schmutz
 
PDF
Microservices with Kafka Ecosystem
Guido Schmutz
 
PDF
Dataservices - Processing Big Data The Microservice Way
Josef Adersberger
 
PDF
Dataservices: Processing Big Data the Microservice Way
QAware GmbH
 
PPTX
10 Principals for Effective Event Driven Microservices
Ben Stopford
 
PDF
Streaming with Spring Cloud Stream and Apache Kafka - Soby Chacko
VMware Tanzu
 
PPTX
Microservices in the Apache Kafka Ecosystem
confluent
 
PDF
BBL KAPPA Lesfurets.com
Cedric Vidal
 
PPTX
Microservices deck
Raja Chattopadhyay
 
James Watters Kafka Summit NYC 2019 Keynote
James Watters
 
Stateful Microservices with Apache Kafka and Spring Cloud Stream with Jan Svo...
HostedbyConfluent
 
Kafka Summit NYC 2017 - Cloud Native Data Streaming Microservices with Spring...
confluent
 
Event driven microservices
Anthony Martin
 
Building Event-Driven (Micro)Services with Apache Kafka
Guido Schmutz
 
Building event-driven (Micro)Services with Apache Kafka
Guido Schmutz
 
Building event-driven (Micro)Services with Apache Kafka Ecosystem
Guido Schmutz
 
James Watters, Pivotal | Kafka Summit NYC 2019 Keynote (Spring Boot+Kafka: Th...
confluent
 
Microservices with Kafka Ecosystem
Guido Schmutz
 
Building Event Driven (Micro)services with Apache Kafka
Guido Schmutz
 
Building event-driven Microservices with Kafka Ecosystem
Guido Schmutz
 
Building Event Driven (Micro)services with Apache Kafka
Guido Schmutz
 
Microservices with Kafka Ecosystem
Guido Schmutz
 
Dataservices - Processing Big Data The Microservice Way
Josef Adersberger
 
Dataservices: Processing Big Data the Microservice Way
QAware GmbH
 
10 Principals for Effective Event Driven Microservices
Ben Stopford
 
Streaming with Spring Cloud Stream and Apache Kafka - Soby Chacko
VMware Tanzu
 
Microservices in the Apache Kafka Ecosystem
confluent
 
BBL KAPPA Lesfurets.com
Cedric Vidal
 
Microservices deck
Raja Chattopadhyay
 
Ad

More from HostedbyConfluent (20)

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

Recently uploaded (20)

PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PPTX
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
PDF
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 

Building Event Streaming Microservices with Spring Boot and Apache Kafka | Jan Svoboda, Confluent

  • 1. Building Event Streaming Microservices with Spring Boot and Apache Kafka Jan Svoboda, Solution Engineer, May 2021
  • 2. Jan Svoboda https://www.linkedin.com/in/svobodajan/ • Confluent, Solutions Engineer 2020 - now • Event Streaming, Event-Driven Microservices • Apache Kafka, Kafka Streams • Pivotal, Platform Architect, 2016 - 2020 • PaaS, Microservices • Cloud Foundry, Spring, Rabbit MQ • IBM, Solutions Architect, 2011 - 2016 • DevOps, Agile • Bluemix, Rational
  • 3. Agenda 3 Motivation My journey to learning Kafka Spring Microservices Architecture Why Spring + Kafka = ♥ Events Streaming Microservices Concepts Look Ma No Hands! Event Sourcing and Data Liberation Removing Database Dependency Microservices Decoupling Integration Pattern State Caching Storing State of a Microservice Demo See it to believe it...
  • 4. My Motivation for Kafka and Microservices Why should a microservices developer care about learning Kafka?
  • 5. Building Microservices aka Cloud Native Applications Modernizing Legacy Applications with New Technology Stack • 3-Layer Model-View-Controller Pattern has been very popular last 15 years • Organizations look for migration shortcuts (no budget=no fun) • New Toy Syndrome (just buy new technology and we are done…) 5 App PaaS D B UI UI App Service Reg. LB My session from Cloud Foundry Summit https://www.youtube.com/watch?v=9moTgBiEauE
  • 6. What is your Microservices Journey? 6 James Watters (Pivotal SVP), Kafka Summit 2019 Keynote, https://youtu.be/9I3CDfHKfNY?t=582 ● Stage 1 -> Strangling the Monolith ○ DB based integration ● Stage 2-> Provide Independent Data Sources ○ REST based integration ● Stage 3 -> Build Event Streaming ○ Kafka based integration
  • 7. Spring ♥Kafka Like Peanut Butter and Jelly...
  • 8. Spring? Spring Kafka? Spring Cloud Services? 8 ● Spring Kafka -> provides a core Kafka libraries ● Spring Cloud Stream + Kafka Binders -> provides an abstraction for building Kafka pipelines ● Spring Integration -> provides Kafka as an integration adapter (EIP) https://spring.io/projects/spring-cloud-stream https://spring.io/blog/2015/11/29/how-not-to- hate-spring-in-2016
  • 9. (Re)Building Spring based Microservices with Kafka Look Ma, No Hands!
  • 10. Demo Application - Architecture and Dataflow • Spring Boot (2 jars) • Apache Kafka (2 topics) • Spring Cloud Streams + Kafka Streams Binder (RocksDB as a state store) Jan:Google,http://google.com Jan:Google,http://google.com JanGoogle: Google, http://google.com JanGoogle,http://google.com https://github.com/griga23/bookmarksDemo
  • 11. Event Streaming Microservices Architecture Patterns Getting hands dirty...
  • 12. 1. Event Sourcing - Removing Database Dependency My Data Liberation ● From Data sourcing to Event sourcing ● From synchronous Request/Reply to asynchronous Publish/Subscribe ● Store the latest key/values in Kafka Streams State Store ● Use Kafka Streams Interactive Queries to query the State Store ● Make data free for everyone to read https://docs.confluent.io/platform/current/streams/developer-guide/interactive-queries.html =>
  • 13. 2. CQRS - Microservices Decoupling Command Query Responsibility Segregation ● Pattern separates read and update operations for a data store. ● Implementing CQRS can maximize performance, scalability, and security. ● Allows a system to better evolve over time and prevents update commands from causing merge conflicts at the domain level. https://docs.microsoft.com/en- us/azure/architecture/patterns/cqrs
  • 14. 3. Scaling – Stateful Microservices • Multiple State Stores with different partitions • HTTP REST calls to provide State Stores inter communication Jan:Google,http://google.com Jan:Yahoo,http://yahoo.com JanGoogle:Google,http://google.com JanYahoo:Yahoo,http://yahoo.com JanGoogle:Google,http://google.co m JanYahoo:Yahoo,http://yahooo.co m https://docs.confluent.io/platform/current/streams/developer-guide/interactive-queries.html#querying-remote-state-stores-for-the-entire-app
  • 15. 4. Reverse Proxy – Routing to the Right State Store https://medium.com/bakdata/queryable-kafka-topics-with-kafka-streams-8d2cca9de33f • Spring Cloud Gateway for incoming HTTP traffic to redirect to proper State Store • State Store Host Awareness Jan:Google,http://google.com Jan:Google JanYahoo:Yahoo,http://yahoo.com