SlideShare a Scribd company logo
https://www.kafka-summit.org/
Server-Sent Events
Using Reactive Kafkaand Spring WebFlux
https://www.kafka-summit.org/
GaganSolur Venkatesh
Senior Software Engineer
Chicago, USA
https://www.kafka-summit.org/
Content
• What are we trying to solve?
• Options: Polling vs Websockets vs SSEs
• Spring WebFlux and Reactor Kafka
• Demo
• Questions
https://www.kafka-summit.org/
• To build real-time applications we always need to consider how
we are going to send data from the server to the client.
• Two approaches are available where:
• Both the clients and the server want to send data.
• Only server want to send data to the clients.
• Use Cases:
• E-Commerce Systems (Web, Mobile, POS, Delivery)
• Live Stock Market Updates
• Live Sports Score Updates
• News Alerts
• In-app notifications
Appsthatreceiveupdatesinreal-time
What are we trying to solve?
Image: https://geekandpoke.typepad.com/geekandpoke/2009/02/before-realtime-was-born.html
https://www.kafka-summit.org/
Client requests server for updates at regular intervals:
• Polling or Long Polling
ClientPull
CommonApproaches
Server pushes updates proactively to the registered or
subscribed clients:
• Web Sockets
• Server-Sent Events (SSEs)
ServerPush
Clients Server
Clients Server
https://www.kafka-summit.org/
Pollingor LongPolling
ClientPull
https://www.kafka-summit.org/
Web Sockets
Server Push
https://www.kafka-summit.org/
Server-SentEvents(SSEs)
Server Push
https://www.kafka-summit.org/
• A fully asynchronous and non-blocking reactive web stack.
• https://spring.io/reactive
Spring Web Flux
Server-Sent Events
• Reactor Kafka is a reactive API for Kafka based on Project Reactor.
• https://projectreactor.io
Reactor Kafka
https://www.kafka-summit.org/
Server-Sent Events
Mom’s Pizza: Receives orders online and then pushes the orders to the stores’ POS systems.
https://www.kafka-summit.org/
Demo
https://www.kafka-summit.org/
Thank You
https://github.com/svgagan/kafka-summit-sse
https://medium.com/egen
gagan.solurvenkatesh@egen.solutions
https://www.kafka-summit.org/
Questions?

More Related Content

What's hot (20)

PDF
XECon+PHPFest2014 발표자료 - ElasticSearch를 이용한 통합검색 구축방법 - 김훈민
XpressEngine
 
PPTX
Catch Me If You Can: PowerShell Red vs Blue
Will Schroeder
 
PPTX
OWASP AppSecCali 2015 - Marshalling Pickles
Christopher Frohoff
 
PPTX
(Ab)Using GPOs for Active Directory Pwnage
Petros Koutroumpis
 
PPTX
Kafka Tutorial: Kafka Security
Jean-Paul Azar
 
PPTX
Unifying Stream, SWL and CEP for Declarative Stream Processing with Apache Flink
DataWorks Summit/Hadoop Summit
 
PPTX
Spring Boot+Kafka: the New Enterprise Platform
VMware Tanzu
 
PDF
aclpwn - Active Directory ACL exploitation with BloodHound
DirkjanMollema
 
PPTX
The Right (and Wrong) Use Cases for MongoDB
MongoDB
 
PPTX
Hashicorp Vault ppt
Shrey Agarwal
 
PPTX
Apache Kafka 0.8 basic training - Verisign
Michael Noll
 
PDF
Hunting Lateral Movement in Windows Infrastructure
Sergey Soldatov
 
PDF
Hunting for Privilege Escalation in Windows Environment
Teymur Kheirkhabarov
 
PDF
How to Hunt for Lateral Movement on Your Network
Sqrrl
 
PDF
Node.js Express Tutorial | Node.js Tutorial For Beginners | Node.js + Expres...
Edureka!
 
PPTX
WAF Bypass Techniques - Using HTTP Standard and Web Servers’ Behaviour
Soroush Dalili
 
PPTX
DEF CON 23 - Hacking Web Apps @brentwdesign
brentwdesign
 
PDF
A Threat Hunter Himself
Teymur Kheirkhabarov
 
PDF
Introduction to VueJS & Vuex
Bernd Alter
 
PPTX
XSS Attacks Exploiting XSS Filter by Masato Kinugawa - CODE BLUE 2015
CODE BLUE
 
XECon+PHPFest2014 발표자료 - ElasticSearch를 이용한 통합검색 구축방법 - 김훈민
XpressEngine
 
Catch Me If You Can: PowerShell Red vs Blue
Will Schroeder
 
OWASP AppSecCali 2015 - Marshalling Pickles
Christopher Frohoff
 
(Ab)Using GPOs for Active Directory Pwnage
Petros Koutroumpis
 
Kafka Tutorial: Kafka Security
Jean-Paul Azar
 
Unifying Stream, SWL and CEP for Declarative Stream Processing with Apache Flink
DataWorks Summit/Hadoop Summit
 
Spring Boot+Kafka: the New Enterprise Platform
VMware Tanzu
 
aclpwn - Active Directory ACL exploitation with BloodHound
DirkjanMollema
 
The Right (and Wrong) Use Cases for MongoDB
MongoDB
 
Hashicorp Vault ppt
Shrey Agarwal
 
Apache Kafka 0.8 basic training - Verisign
Michael Noll
 
Hunting Lateral Movement in Windows Infrastructure
Sergey Soldatov
 
Hunting for Privilege Escalation in Windows Environment
Teymur Kheirkhabarov
 
How to Hunt for Lateral Movement on Your Network
Sqrrl
 
Node.js Express Tutorial | Node.js Tutorial For Beginners | Node.js + Expres...
Edureka!
 
WAF Bypass Techniques - Using HTTP Standard and Web Servers’ Behaviour
Soroush Dalili
 
DEF CON 23 - Hacking Web Apps @brentwdesign
brentwdesign
 
A Threat Hunter Himself
Teymur Kheirkhabarov
 
Introduction to VueJS & Vuex
Bernd Alter
 
XSS Attacks Exploiting XSS Filter by Masato Kinugawa - CODE BLUE 2015
CODE BLUE
 

Similar to Server Sent Events using Reactive Kafka and Spring Web flux | Gagan Solur Venkatesh, Egen Solutions Inc (20)

PDF
Role of Server-Sent Events in Reactive Programming
Covalensedigital
 
PDF
Unlocking Realtime Web Applications - 4Developers Katowice 2023
Patryk Omiotek
 
PDF
Connect K of SMACK:pykafka, kafka-python or?
Micron Technology
 
PDF
HTML5 Server Sent Events/JSF JAX 2011 Conference
Roger Kitain
 
PDF
Springone2gx 2014 Reactive Streams and Reactor
Stéphane Maldini
 
PPTX
DevNexus - Reacting to an event driven world
Grace Jansen
 
PPTX
Spring webflux
Carlos E. Salazar
 
PPTX
Behind the scenes of Real-Time Notifications
Guillermo Mansilla
 
PDF
Real-time Geospatial Aircraft Monitoring Using Apache Kafka
HostedbyConfluent
 
PPTX
What is Kafka & why is it Important? (UKOUG Tech17, Birmingham, UK - December...
Lucas Jellema
 
PPTX
Virtual Meetup Sweden - Reacting to an event driven world
Grace Jansen
 
PDF
ServerSentEventsV2.pdf
Alessandro Minoccheri
 
PPTX
Jfokus - Reacting to an event-driven world
Grace Jansen
 
PPTX
apidays LIVE Jakarta - REST the events: REST APIs for Event-Driven Architectu...
apidays
 
PDF
Reacting to an Event-Driven World (Kate Stanley & Grace Jansen, IBM) Kafka Su...
confluent
 
PPTX
Spring reactor
Bhargav Surimenu
 
PDF
Server-Side Programming Primer
Ivano Malavolta
 
PPTX
Reducing Microservice Complexity with Kafka and Reactive Streams
jimriecken
 
PPTX
JSpring Virtual 2020 - Reacting to an event-driven world
Grace Jansen
 
PDF
Reactive messaging Quarkus and Kafka
Bruno Horta
 
Role of Server-Sent Events in Reactive Programming
Covalensedigital
 
Unlocking Realtime Web Applications - 4Developers Katowice 2023
Patryk Omiotek
 
Connect K of SMACK:pykafka, kafka-python or?
Micron Technology
 
HTML5 Server Sent Events/JSF JAX 2011 Conference
Roger Kitain
 
Springone2gx 2014 Reactive Streams and Reactor
Stéphane Maldini
 
DevNexus - Reacting to an event driven world
Grace Jansen
 
Spring webflux
Carlos E. Salazar
 
Behind the scenes of Real-Time Notifications
Guillermo Mansilla
 
Real-time Geospatial Aircraft Monitoring Using Apache Kafka
HostedbyConfluent
 
What is Kafka & why is it Important? (UKOUG Tech17, Birmingham, UK - December...
Lucas Jellema
 
Virtual Meetup Sweden - Reacting to an event driven world
Grace Jansen
 
ServerSentEventsV2.pdf
Alessandro Minoccheri
 
Jfokus - Reacting to an event-driven world
Grace Jansen
 
apidays LIVE Jakarta - REST the events: REST APIs for Event-Driven Architectu...
apidays
 
Reacting to an Event-Driven World (Kate Stanley & Grace Jansen, IBM) Kafka Su...
confluent
 
Spring reactor
Bhargav Surimenu
 
Server-Side Programming Primer
Ivano Malavolta
 
Reducing Microservice Complexity with Kafka and Reactive Streams
jimriecken
 
JSpring Virtual 2020 - Reacting to an event-driven world
Grace Jansen
 
Reactive messaging Quarkus and Kafka
Bruno Horta
 
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
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
Persuasive AI: risks and opportunities in the age of digital debate
Speck&Tech
 
PDF
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
July Patch Tuesday
Ivanti
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
PDF
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Persuasive AI: risks and opportunities in the age of digital debate
Speck&Tech
 
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
July Patch Tuesday
Ivanti
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 

Server Sent Events using Reactive Kafka and Spring Web flux | Gagan Solur Venkatesh, Egen Solutions Inc