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

PPTX
Site24x7 Server Monitoring from the Cloud
PDF
Matching Identity Management Solutions to Self-Sovereign Identity Principles
PDF
Bp101-Can Domino Be Hacked
PDF
What is Bitcoin? How Bitcoin works in under 5 minutes.
PPTX
High performance web sites with multilevel caching
PPTX
Software Versioning by mohammad al banna
PDF
Stateless authentication with OAuth 2 and JWT - JavaZone 2015
PDF
What is web3?
Site24x7 Server Monitoring from the Cloud
Matching Identity Management Solutions to Self-Sovereign Identity Principles
Bp101-Can Domino Be Hacked
What is Bitcoin? How Bitcoin works in under 5 minutes.
High performance web sites with multilevel caching
Software Versioning by mohammad al banna
Stateless authentication with OAuth 2 and JWT - JavaZone 2015
What is web3?

What's hot (20)

PDF
Introduction to API Security - Intergalactic
PPTX
Learn nginx in 90mins
PDF
Microservice With Spring Boot and Spring Cloud
PDF
Best Practices for Middleware and Integration Architecture Modernization with...
PDF
Architectural patterns for high performance microservices in kubernetes
PDF
Dapr - A 10x Developer Framework for Any Language
PDF
Secure coding presentation Oct 3 2020
PPTX
Hack ASP.NET website
ODP
Red Hat Gluster Storage : GlusterFS
PDF
Design patterns for microservice architecture
PPTX
NGINX, Istio, and the Move to Microservices and Service Mesh
PPTX
Spring Security 3
PPTX
Software architecture for high traffic website
PDF
Content Security Policy - Lessons learned at Yahoo
PPTX
Integrating microservices with apache camel on kubernetes
PDF
Scaling Ethereum using Zero-Knowledge Proofs
PDF
Thiết kế hệ thống E-Commerce yêu cầu mở rộng
PDF
An Attacker's View of Serverless and GraphQL Apps - Abhay Bhargav - AppSec Ca...
PPTX
Multi tier, multi-tenant, multi-problem kafka
PDF
[Outdated] Secrets of Performance Tuning Java on Kubernetes
Introduction to API Security - Intergalactic
Learn nginx in 90mins
Microservice With Spring Boot and Spring Cloud
Best Practices for Middleware and Integration Architecture Modernization with...
Architectural patterns for high performance microservices in kubernetes
Dapr - A 10x Developer Framework for Any Language
Secure coding presentation Oct 3 2020
Hack ASP.NET website
Red Hat Gluster Storage : GlusterFS
Design patterns for microservice architecture
NGINX, Istio, and the Move to Microservices and Service Mesh
Spring Security 3
Software architecture for high traffic website
Content Security Policy - Lessons learned at Yahoo
Integrating microservices with apache camel on kubernetes
Scaling Ethereum using Zero-Knowledge Proofs
Thiết kế hệ thống E-Commerce yêu cầu mở rộng
An Attacker's View of Serverless and GraphQL Apps - Abhay Bhargav - AppSec Ca...
Multi tier, multi-tenant, multi-problem kafka
[Outdated] Secrets of Performance Tuning Java on Kubernetes
Ad

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

PDF
Genji: Framework for building resilient near-realtime data pipelines
PDF
OSA Con 2022 - Building a Real-time Analytics Application with Apache Pulsar ...
PDF
Building a Real-Time Analytics Application with Apache Pulsar and Apache Pinot
PDF
Kafka: Journey from Just Another Software to Being a Critical Part of PayPal ...
PPTX
Chef Actions: Delightful near real-time activity tracking!
PPTX
AWS re:Invent 2016: Content and Data Platforms at Vevo: Rebuilding and Scalin...
PPTX
Azure Functions Real World Examples
PPTX
Event-Based API Patterns and Practices
PPTX
MongoDB World 2018: Ch-Ch-Ch-Ch-Changes: Taking Your Stitch Application to th...
PDF
New usage model for real-time analytics by Dr. WILLIAM L. BAIN at Big Data S...
PDF
Desarrollo de apps multiplataforma con tecnologías web
PDF
Sg conference multiplatform_apps_adam_stanley
PPTX
Code first in the cloud: going serverless with Azure
PDF
Gluecon 2017 - GoMake | Flying Dreams: Real-Time Communication from the Edge ...
PPTX
Automated Data Synchronization: Data Loader, Data Mirror & Beyond
PDF
Performance and Scalability Art of Isomorphic React Applications
PPTX
Forecast: Cloud-y with Azure Skies
DOC
JeffWalkerResume2016
PDF
Acting on Real-time Behavior: How Peak Games Won Transactions
PPTX
NEXTjs.pptxfggfgfdgfgfdgfdgfdgfdgfdgfdgfg
Genji: Framework for building resilient near-realtime data pipelines
OSA Con 2022 - Building a Real-time Analytics Application with Apache Pulsar ...
Building a Real-Time Analytics Application with Apache Pulsar and Apache Pinot
Kafka: Journey from Just Another Software to Being a Critical Part of PayPal ...
Chef Actions: Delightful near real-time activity tracking!
AWS re:Invent 2016: Content and Data Platforms at Vevo: Rebuilding and Scalin...
Azure Functions Real World Examples
Event-Based API Patterns and Practices
MongoDB World 2018: Ch-Ch-Ch-Ch-Changes: Taking Your Stitch Application to th...
New usage model for real-time analytics by Dr. WILLIAM L. BAIN at Big Data S...
Desarrollo de apps multiplataforma con tecnologías web
Sg conference multiplatform_apps_adam_stanley
Code first in the cloud: going serverless with Azure
Gluecon 2017 - GoMake | Flying Dreams: Real-Time Communication from the Edge ...
Automated Data Synchronization: Data Loader, Data Mirror & Beyond
Performance and Scalability Art of Isomorphic React Applications
Forecast: Cloud-y with Azure Skies
JeffWalkerResume2016
Acting on Real-time Behavior: How Peak Games Won Transactions
NEXTjs.pptxfggfgfdgfgfdgfdgfdgfdgfdgfdgfg
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

Recently uploaded (20)

PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
KodekX | Application Modernization Development
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
A Presentation on Artificial Intelligence
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Electronic commerce courselecture one. Pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
Encapsulation theory and applications.pdf
PDF
Approach and Philosophy of On baking technology
PDF
Modernizing your data center with Dell and AMD
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Machine learning based COVID-19 study performance prediction
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Digital-Transformation-Roadmap-for-Companies.pptx
KodekX | Application Modernization Development
MYSQL Presentation for SQL database connectivity
A Presentation on Artificial Intelligence
NewMind AI Monthly Chronicles - July 2025
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Reach Out and Touch Someone: Haptics and Empathic Computing
Encapsulation_ Review paper, used for researhc scholars
Electronic commerce courselecture one. Pdf
Empathic Computing: Creating Shared Understanding
Encapsulation theory and applications.pdf
Approach and Philosophy of On baking technology
Modernizing your data center with Dell and AMD
Network Security Unit 5.pdf for BCA BBA.
Machine learning based COVID-19 study performance prediction
Advanced methodologies resolving dimensionality complications for autism neur...
20250228 LYD VKU AI Blended-Learning.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf

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