COPY URL
SHARE CASE STUDY
Infrastructure As Code

Introduction to Event Driven Auto Scaling

Ajaykumar Manimala
K8s Expert @ TYNYBAY
Timer Icon
Apr 21st, 2022
3
 m Read

Before understanding Event-Driven Auto Scaling, take a look at what Event-Driven Architecture is.

Event-Driven Architecture

Event-Driven Architecture(EDA) is a higher-level application design paradigm that specifies how your app's many components interact with one another and with other external apps.Events, event emitters, event managers, and event consumers are all terms used to describe interactions.

In EDA, Information Exchange between the components happens through the production and consumption of events.

What is an Event?

Decoupling producers and consumers

The modification of some entity's status is commonly associated with events. For example, placing an order is an event on an e-commerce platform.

The event-driven architecture enables a logical separation between producers and consumers. With this separation, the producer and consumer don't need to worry about each other.

The events that producers produce will be consumed, so they need not worry about how consumers will receive them.

Consumers don't need to worry about the producers and how the events were produced.

For example, if you are booking a taxi you will be the producer of that event(booking a taxi) the taxi driver who accepts your request is a consumer of the event.  

Push based mechanism

Before we understand push based mechanism, let us first understand the difference between polling-based and push based mechanisms.

For instance, if any product is out of stock on an e-commerce platform, some people keep refreshing the website every few minutes to check the status of that particular product, this scenario is like a Polling-based mechanism. While few others activate the notify option and when the stock is back they will be notified, this scenario is push based mechanism.

Event-driven systems are a more modern approach to push based mechanism. The consumer doesn't need constant polling because events will notify them when something happens in their system - this is useful for real-time data transformation and analysis.

Event-Driven Auto Scaling

Event-driven auto scaling is a great way to ensure that your service can handle increasing workloads. Based on the number of events that need to be processed, you can ensure that your service can keep up with demand. This type of scaling is beneficial for services that receive many requests without any prior information.

Event-Driven Auto scaling on Kubernetes

The Horizontal Pod Autoscaler (HPA) in Kubernetes only reacts to resource-based metrics such as CPU or memory usage. For event-driven applications where there could suddenly be a stream of data, this can take time and cause delays in scaling up, plus you have the extra hassle of removing pods when the stream becomes slower than expected!

Is there any component that can do the EDA job on Kubernetes? Luckily Yes, We have KEDA.

KEDA - Kubernetes Event-Driven Autoscaling

KEDA is a lightweight and easy-to-use event-driven autoscaler for Kubernetes. Event-driven scaling means that KEDA will automatically scale your pods up or down based on how many events they are processing. KEDA works with standard components like horizontal pod autoscaler (HPA).

The following article will be on KEDA hands-on. Keep an eye on this space.

About TYNYBAY

A Cloud Native Consulting Company founded in 2020. We enable and empower teams to get the most out of the Cloud Native ecosystem. Our team of experts, known as TYNYpreneurs, are all certified Kubernetes and Cloud architects.

About TYNYBAY

A Cloud Native Consulting Company founded in 2020. We enable and empower teams to get the most out of the Cloud Native ecosystem. Our team of experts, known as TYNYpreneurs, are all certified Kubernetes and Cloud architects.

Our Experts

Featured TYNYpreneurs

Get in touch with our TYNYpreneurs to discuss your project requirements and explore how we can help you build a scalable, resilient, and agile application for your business.

Krishna Teja
Senior Software Engineer
Swapna Anumula
Software Development Engineer Manager
Ajay Chandra
Software Development Engineer
Shiva Prasad
Associate Software Engineer
Mounika Musham
Associate Software Engineer

Book a 30 min call with our Featured TYNYpreneurs

Book a call with the experts who have a proven track record of delivering exceptional results.
Book a call now

Let’s get started. This is exactly what will happen after you get started

We will respond to you within 24 hours.
We’ll sign a Non-disclosure agreement.
You’ll be talking to the product and tech experts (no account managers).

Your best partner for the 
journey ahead.

I would like to
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Our Thinking / Introduction to Event Driven Auto Scaling
Infrastructure As Code

Introduction to Event Driven Auto Scaling

Ajaykumar Manimala
K8s Expert @ TYNYBAY
Apr 21st, 2022
Timer Icon
Timer Icon
3
 m Read

Before understanding Event-Driven Auto Scaling, take a look at what Event-Driven Architecture is.

Event-Driven Architecture

Event-Driven Architecture(EDA) is a higher-level application design paradigm that specifies how your app's many components interact with one another and with other external apps.Events, event emitters, event managers, and event consumers are all terms used to describe interactions.

In EDA, Information Exchange between the components happens through the production and consumption of events.

What is an Event?

Decoupling producers and consumers

The modification of some entity's status is commonly associated with events. For example, placing an order is an event on an e-commerce platform.

The event-driven architecture enables a logical separation between producers and consumers. With this separation, the producer and consumer don't need to worry about each other.

The events that producers produce will be consumed, so they need not worry about how consumers will receive them.

Consumers don't need to worry about the producers and how the events were produced.

For example, if you are booking a taxi you will be the producer of that event(booking a taxi) the taxi driver who accepts your request is a consumer of the event.  

Push based mechanism

Before we understand push based mechanism, let us first understand the difference between polling-based and push based mechanisms.

For instance, if any product is out of stock on an e-commerce platform, some people keep refreshing the website every few minutes to check the status of that particular product, this scenario is like a Polling-based mechanism. While few others activate the notify option and when the stock is back they will be notified, this scenario is push based mechanism.

Event-driven systems are a more modern approach to push based mechanism. The consumer doesn't need constant polling because events will notify them when something happens in their system - this is useful for real-time data transformation and analysis.

Event-Driven Auto Scaling

Event-driven auto scaling is a great way to ensure that your service can handle increasing workloads. Based on the number of events that need to be processed, you can ensure that your service can keep up with demand. This type of scaling is beneficial for services that receive many requests without any prior information.

Event-Driven Auto scaling on Kubernetes

The Horizontal Pod Autoscaler (HPA) in Kubernetes only reacts to resource-based metrics such as CPU or memory usage. For event-driven applications where there could suddenly be a stream of data, this can take time and cause delays in scaling up, plus you have the extra hassle of removing pods when the stream becomes slower than expected!

Is there any component that can do the EDA job on Kubernetes? Luckily Yes, We have KEDA.

KEDA - Kubernetes Event-Driven Autoscaling

KEDA is a lightweight and easy-to-use event-driven autoscaler for Kubernetes. Event-driven scaling means that KEDA will automatically scale your pods up or down based on how many events they are processing. KEDA works with standard components like horizontal pod autoscaler (HPA).

The following article will be on KEDA hands-on. Keep an eye on this space.

Deployment Models & Multi-Cloud with Terraform

Next Blog