WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
Azure Event Grid
1. Go Serverless using Event Grid to build
applications with event-based architectures
Karthikeyan VK
Karthik_3030@yahoo.com
@karthik3030
https://blogs.karthikeyanvk.in
2. Enter Text
Why Event Grid ?
Allows you to easily build applications with event-based
architectures.
Has built-in support for events coming from Azure services,
like storage blobs and resource groups.
Also has support for your own events, using custom topics.
https://blogs.karthikeyanvk.in
3. Enter Text
Why Event Grid ?
Provides several capabilities that vastly improve
Serverless, ops automation, and integration work
Also has support for your own events, using custom
topics.
https://blogs.karthikeyanvk.in
4. Enter Text
Why Event Grid ?
Eliminate polling—and the associated cost and latency. With
Event Grid, event publishers are decoupled from event
subscribers using a pub/sub model and simple HTTP-based event
delivery, allowing you to build scalable Serverless applications,
Microservices and distributed systems.
https://blogs.karthikeyanvk.in
5. Enter Text
What is an Event ?
An event is a lightweight notification of a condition or a state
change.
The publisher of the event has no expectation about how the
event is handled.
The consumer of the event decides what to do with the
notification. Events can be discrete units or part of a series.
https://blogs.karthikeyanvk.in
6. Enter Text
What is an Event Based Architecture ?
Event-driven architecture, is a software architecture pattern
promoting the production, detection, consumption of, and
reaction to events.
An event can be defined as "a significant change in state"
For example, when a consumer purchases a car, the car's state
changes from "for sale" to "sold"
https://blogs.karthikeyanvk.in
7. Enter Text
What is Event Grid?
https://blogs.karthikeyanvk.in
Azure Event Grid is a fully-managed intelligent event routing
service that allows for uniform event consumption using a
publish-subscribe model.
Use Azure Event Grid to react to relevant events across both
Azure and non-Azure services in near-real time
10. Enter Text
What are Topics ?
Event grid topic provides an endpoint where the source sends
events.
Publisher creates the event grid topic, and decides whether an
event source needs one topic or more than one topic.
To respond to certain types of events, subscribers decide which
topics to subscribe to.
https://blogs.karthikeyanvk.in
11. Enter Text
What is an Event Source?
https://blogs.karthikeyanvk.in
An event source is where the event happens. Each event
source is related to one or more event types.
Your application is the event source for custom events
that you define.
12. Enter Text
What is an Event Source?
https://blogs.karthikeyanvk.in
For example, Azure Storage is the event source for blob
created events. Image upload web page is the event
source for events.
Event sources are responsible for sending events to Event
Grid.
13. Enter Text
What is an Event Subscription?
https://blogs.karthikeyanvk.in
A subscription tells Event Grid which events on a topic
you're interested in receiving.
When creating the subscription, you provide an endpoint
for handling the event.
You can filter the events that are sent to the endpoint.
14. Enter Text
What is an Event Handler?
https://blogs.karthikeyanvk.in
Event handler is the place where the event is sent. The
handler takes some further action to process the event.
Event Grid supports several handler types. Such as web
hook
You can filter the events that are sent to the endpoint.
15. Enter Text
Quick Demo on Azure
Functions with
Eventgrid
https://blogs.karthikeyanvk.in
16. Enter Text
What is a Custom Topic?
https://blogs.karthikeyanvk.in
Custom topics are application and third-party topics.
When designing your application, you have flexibility to
create topics which satisfies your need.
17. Enter Text
What is a Custom Topic?
https://blogs.karthikeyanvk.in
Azure has an built in Azure Event Grid Topic.
You can send events to custom topic as send your
messages to your queue
You can create multiple custom topic on single endpoint of
the eventgrid.
18. Enter Text
Demo on Azure
Functions with
Event Grid Topic
https://blogs.karthikeyanvk.in