SlideShare a Scribd company logo
EVENT STREAMING
ARCHITECTURE - DEEP
DIVE
KARTHIKEYAN VK
@KARTHIK3030
WHY EVENT STREAMING?
Realtime
processing
Realtime
analytics
Live
dashboarding
Solves
Microservices
drawbacks
Faster
developme
nt
PROBLEMS WITH CURRENT ANALYTICS
Not Realtime
ETL was created during a
period of monolithic
architectures, data warehouses
and relational databases.
PROBLEMS WITH CURRENT MICROSERVICES
ARCHITECTURE
• Client more details about our
service
• Too many details to be
exposed
• Chatty communication
PROBLEMS WITH CURRENT MICROSERVICES
ARCHITECTURE
• Gateway can take care of
authentication.
• Rate limiting possible
• Things seems ok.
ANTIPATTERN – GOD
SIDECAR PATTERN
CHANGES ARE STILL HARD
• Adding a new service needs to
communicated to other services of
its presence.
• Chatty communication between
services
• REST+JSON is SLOW
• GRPC better, but not a complete
solution
• Adding services adds new changes
to the other services.
EVENT DRIVEN/STREAMING
COMPARISON
EVENT STREAMING PATTERN
ONLINE SHOP
1. No Knowledge of other services
2. Communication at services will.
3. Rest calls reduced.
4. Broadcast your events and can be
ignored by other services or
consumed.
ONLINE SHOPPING USING R.E.S.T
1.Order should know about
shipment services
2.Shipment should get details
of the customer from the
customer service
3.What if there is customer
details are changed ?
EVENT ARE BOTH FACTS AND TRIGGERS
PRODUCT ORDERED - FACT
1.Order submitted
2.Event sent to Kafka
3.Shipment reacts to the order
being placed
4.No REST communication
between order and shipment
5.Product updates itself based
on process result
ADDRESS CHANGED - TRIGGER
1.Customer changes address
2.Event sent to Kafka
3.Shipment reacts to changes
4.Order does not have to care
about any changes once it is
placed.
5.Shipment updates its database
6.Other services will not react if it
is not pertained to them,
IGNORE
DEMO
AZURE EVENT HUBS - SETUP
DEMO
EVENT STREAMING -
DEEPDIVE
BOOKS TO READ
BASICS OF EVENT STREAMING
• Databases vs streams
• Command vs Events
• Immutable Events
• State, Streams and Immutability
• Stream Joins
DATABASE VS STREAMS
• Concept wise it is same
• Every action takes places is stored as logs
• Restore happens from reading the logs again and creating
the database
COMMAND VS EVENTS VS IMMUTABLE
EVENTS
• Any request is a command.
• After integrity check it becomes an Event.
• Booking an air ticket is command, if there is ticket
available, it becomes an event. It also becomes a fact.
• When the ticket is cancelled, it is still an event, that is
immutable and recorded in our system.
STATE, STREAMS AND IMMUTABILITY
• When the ticket is booked, the State is saved.
• When the ticket date is changed and ticket class is
upgraded, there is a Stream of events that changes the
state.
• Ticket can even be cancelled but the history of the ticket
booking will remain and recorded as logs and each event
is Immutable.
STREAM JOINS
• Joining different datasets to perform analysis
• Stream-Stream Join
• Stream-Table Join
• Table-Table Join
STREAM-STREAM JOINS
• User searches for a book and he clicks the search result.
• You need to map the book searched and clicked book.
• Now the search is recorded as one event and click is
another event.
• If you want to analyse the click through rate you need to
bring together the search and click action, which can be
connected by Session ID
STREAM-TABLE JOINS
• User searches for a book
• You need to show some recommendation based on his
search
• Now you need to join the search which is an event and his
search history which is saved as table.
• You can copy the table to local cache and join the search.
But cache can become stale. Better is to subscribe the
cache to the stream of user history
DEMO
AZURE EVENT HUBS – ANOMALY
DETECTION ON STREAMING DATA
REFERENCES
• https://www.infoq.com/presentations/microservices-streams-state-
scalability/
• https://docs.microsoft.com/en-in/azure/event-hubs/event-hubs-about
• https://docs.microsoft.com/en-in/azure/event-hubs/event-hubs-tutorial-
visualize-anomalies
• https://github.com/Azure/azure-event-
hubs/tree/master/samples/DotNet/Azure.Messaging.EventHubs
Q&A

More Related Content

PPTX
Pillars of great Azure Architecture
PPTX
Monolithic to Microservices - Handson
PPTX
Tips & Tricks to build software architecture document
PPTX
Cloud Design Patterns
PPTX
Make your Azure PaaS Deployment More Safe
PPTX
Building a document e-signing workflow with Azure Durable Functions
PPTX
Improving Application Security With Azure
PPTX
Introduction to Azure AD and Azure AD B2C
Pillars of great Azure Architecture
Monolithic to Microservices - Handson
Tips & Tricks to build software architecture document
Cloud Design Patterns
Make your Azure PaaS Deployment More Safe
Building a document e-signing workflow with Azure Durable Functions
Improving Application Security With Azure
Introduction to Azure AD and Azure AD B2C

What's hot (20)

PPTX
Cloud Based Rights Management with Azure RMS
PDF
Bringing Enterprise to the Blockchain - Moving from Science Experiment to Pra...
PPTX
Introduction to Active Directory
PPTX
Azure operational insights
PDF
Microsoft Azure Cloud Services
PPTX
Azure security and Compliance
PPT
SQL Server 2008 Security Overview
PDF
Data Architecture not Just for Microservices
PPTX
Deep thoughts from the real world of azure
PPTX
Security Architecture Best Practices for SaaS Applications
PPTX
Enterprise-class security with PostgreSQL - 2
PPTX
Enterprise-class security with PostgreSQL - 1
PPTX
Work with data in ASP.NET
PPTX
Modern Data Security for the Enterprises – SQL Server & Azure SQL Database
PPTX
التقنيات المستخدمة لتطوير المكتبات
PPTX
Building Secure Extranets with Claims-Based Authentication #SPEvo13
PPTX
Decentralization of internet of things with blockchain architecture
 
KEY
Event Driven Architecture
PPTX
Azure Security Overview
PDF
Search for all with Elastic Enterprise Search
Cloud Based Rights Management with Azure RMS
Bringing Enterprise to the Blockchain - Moving from Science Experiment to Pra...
Introduction to Active Directory
Azure operational insights
Microsoft Azure Cloud Services
Azure security and Compliance
SQL Server 2008 Security Overview
Data Architecture not Just for Microservices
Deep thoughts from the real world of azure
Security Architecture Best Practices for SaaS Applications
Enterprise-class security with PostgreSQL - 2
Enterprise-class security with PostgreSQL - 1
Work with data in ASP.NET
Modern Data Security for the Enterprises – SQL Server & Azure SQL Database
التقنيات المستخدمة لتطوير المكتبات
Building Secure Extranets with Claims-Based Authentication #SPEvo13
Decentralization of internet of things with blockchain architecture
 
Event Driven Architecture
Azure Security Overview
Search for all with Elastic Enterprise Search
Ad

Similar to Event Streaming Architecture - Deep Dive (20)

PDF
Events in a microservices architecture
PPTX
StructuredStreaming webinar slides.pptx
PPTX
StructuredStreaming webinar slides.pptx
PPTX
Event Driven Architecture – Enabling Microservices
PPTX
Patterns of Distributed Application Design
PPTX
Azure stream analytics by Nico Jacobs
PPTX
Events & Microservices
PPTX
Event Driven Architectures - Net Conf UY 2018
PDF
Event Sourcing, Stream Processing and Serverless (Benjamin Stopford, Confluen...
PDF
Reliable and Scalable Data Ingestion at Airbnb
PPTX
Observability – the good, the bad, and the ugly
PPTX
WebAction-Sami Abkay
PPTX
CQRS and Event Sourcing for IoT applications
PPTX
Event Driven Architectures
PDF
Patterns of Distributed Application Design
PPTX
Assessing New Databases– Translytical Use Cases
PPT
Billions of Rows, Millions of Insights, Right Now
PDF
Tableau Seattle BI Event How Tableau Changed My Life
PPTX
StreamCentral Information System Overview
PPTX
Understanding event data
Events in a microservices architecture
StructuredStreaming webinar slides.pptx
StructuredStreaming webinar slides.pptx
Event Driven Architecture – Enabling Microservices
Patterns of Distributed Application Design
Azure stream analytics by Nico Jacobs
Events & Microservices
Event Driven Architectures - Net Conf UY 2018
Event Sourcing, Stream Processing and Serverless (Benjamin Stopford, Confluen...
Reliable and Scalable Data Ingestion at Airbnb
Observability – the good, the bad, and the ugly
WebAction-Sami Abkay
CQRS and Event Sourcing for IoT applications
Event Driven Architectures
Patterns of Distributed Application Design
Assessing New Databases– Translytical Use Cases
Billions of Rows, Millions of Insights, Right Now
Tableau Seattle BI Event How Tableau Changed My Life
StreamCentral Information System Overview
Understanding event data
Ad

More from Karthikeyan VK (20)

PPTX
GCD ChatGPT.pptx
PPTX
DataScience-101
PPTX
How to become a Software Architect.pptx
PPTX
Blockchain workshop 101
PPTX
Anti patterns
PPTX
How to double your productivity as a developer
PPTX
How to be an expert in Debugging .Net Applications
PPTX
Chat bot LUIS
PPTX
Cloud design pattern using azure
PPTX
Enterprise security kubernetes
PPTX
Save Azure Cost
PPTX
Learning graphql .Net
PPTX
Azure devspaces
PPTX
Azure Event Grid
PPTX
Machine Learning Basics using Azure ML
PPTX
Convert monolithic .Net Applications to microservices With Principles
PPTX
Cognitive Intelligence using azure search
PPTX
Convert monolithic .Net Applications to microservices
PPTX
Azure container instances
PPTX
Azure Durable Functions
GCD ChatGPT.pptx
DataScience-101
How to become a Software Architect.pptx
Blockchain workshop 101
Anti patterns
How to double your productivity as a developer
How to be an expert in Debugging .Net Applications
Chat bot LUIS
Cloud design pattern using azure
Enterprise security kubernetes
Save Azure Cost
Learning graphql .Net
Azure devspaces
Azure Event Grid
Machine Learning Basics using Azure ML
Convert monolithic .Net Applications to microservices With Principles
Cognitive Intelligence using azure search
Convert monolithic .Net Applications to microservices
Azure container instances
Azure Durable Functions

Recently uploaded (20)

PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Big Data Technologies - Introduction.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Machine Learning_overview_presentation.pptx
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Electronic commerce courselecture one. Pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
Cloud computing and distributed systems.
PDF
Empathic Computing: Creating Shared Understanding
Assigned Numbers - 2025 - Bluetooth® Document
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Unlocking AI with Model Context Protocol (MCP)
The Rise and Fall of 3GPP – Time for a Sabbatical?
Spectral efficient network and resource selection model in 5G networks
Big Data Technologies - Introduction.pptx
Network Security Unit 5.pdf for BCA BBA.
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Machine Learning_overview_presentation.pptx
A comparative analysis of optical character recognition models for extracting...
Electronic commerce courselecture one. Pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
20250228 LYD VKU AI Blended-Learning.pptx
gpt5_lecture_notes_comprehensive_20250812015547.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Programs and apps: productivity, graphics, security and other tools
Cloud computing and distributed systems.
Empathic Computing: Creating Shared Understanding

Event Streaming Architecture - Deep Dive