Autoscale Applications
based on external events
with KEDA
Nilesh Gule @nileshgule
$whoami
{
“name” : “Nilesh Gule”,
“website” : “https://www.HandsOnArchitect.com",
“github” : “https://GitHub.com/NileshGule"
“twitter” : “@nileshgule”,
“linkedin” : “https://www.linkedin.com/in/nileshgule”,
“YouTube” : “https://www.YouTube.com/@nilesh-gule”
“likes” : “Technical Evangelism, Cricket”,
“co-organizer” : “Azure Singapore UG”
}
Autoscale applications based on external events with KEDA.pdf
@nileshgule
KEDA
Kubernets based Event Driven Autoscaling
Scaling in Kubernetes KEDA Overview
TechTalks demo with RabbitMQ Autoscaling with KEDA
KEDA Architecture
Agenda
Pre-requisites
• Self contained application with all its
dependencies
Docker
• Orchestrates containers
• Self healing
• Service discovery
• Scaling
Kubernetes
• Dockerhub / private container registry
• Repository for storing container images
Container Registry
• Managed Kubernetes service on Azure
• Native integration with other Azure services like Azure Active
Directory (AAD), Azure Container registry (ACR), Azure
Container Instances (ACI), Azure Monitor etc.
Azure Kubernetes Service (AKS)
Kubernetes scaling options
Horizontal Pod
Autoscaler
Vertical Pod
Autoscaler
Cluster Autoscaler
Manual
TechTalks Application Architecture
TechTalks Consumer
TechTalks Producer
TechTalks Frontend (UI)
Message Broker
Polyglot
Programming
Dapr overview
Techtalks-producer
Azure-Singapore-cluster
demo-azure-singapore-rg
ngacrregistry
acrResourceGroup
Techtalks-consumer
TechTalks with Dapr - AKS
@nileshgule
Demo KEDA in action
KEDA Architecture
ScaledObject
apiVersion: keda.k8s.io/v1alpha1
kind: ScaledObject
metadata:
name: rabbitmq-consumer
namespace: default
labels:
deploymentName: rabbitmq-consumer-deployment
spec:
scaleTargetRef:
deploymentName: rabbitmq-consumer
pollingInterval: 5 # Optional. Default: 30 seconds
cooldownPeriod: 30 # Optional. Default: 300 seconds
minReplicaCount: 1 # Optional. Default: 0
maxReplicaCount: 30 # Optional. Default: 100
triggers:
- type: rabbitmq
metadata:
queueName: hello
queueLength : ‘5’
authenticationRef:
name: trigger-auth-rabbitmq-host
KEDA Features
Run Containers at scale
❖KEDA supported scale triggers including Azure Event Hub,
Apache Kafka, RabbitMQ, MongoDB, MySQL, PostgreSQL
etc.
❖Robust autoscaling without managing complex
infrastructure
❖Scale to zero and pay only for use by the second
https://keda.sh/docs/2.11/scalers/
Summary
• Modern applications are loosely coupled and highly portable
• AKS provides native integrations to Dapr and KEDA
• KEDA helps to auto scale on metrics external to Kubernetes
• Dapr tries to simplify the Microservices development and
deployment
• Dapr Components help to extract underlying functionality and
provides abstractions
• Make app portable to run in serverless as well as managed cloud
services
References
https://www.youtube.com/@nilesh-gule
https://dapr.io/
Dapr Publish and Subscribe
Kubernetes Event Driven Autoscaling
Serverless - Dapr and Azure Container Apps
Comparison between ACA and AKS
Containerize Apps Resources
Cloud Native Ninja : https://github.com/NileshGule/cloud-native-ninja
Azure Container Apps : https://github.com/NileshGule/techtalks-azure-container-apps-demo
Slides
Slideshare: https://www.slideshare.net/nileshgule/
Speaker Deck: https://speakerdeck.com/nileshgule/
Nilesh Gule
ARCHITECT | MICROSOFT MVP
“Code with Passion and
Strive for Excellence”
nileshgule @nileshgule Nilesh Gule
NileshGule
www.handsonarchitect.com
https://www.youtube.com/@nilesh-gule
#GlobalAzure
Q&A

More Related Content

PDF
Event Driven Autoscaling using KEDA - MVP
PDF
Distributed Event Driven Systems with KEDA.pdf
PDF
Autoscaling containers with event driven workloads
PDF
Event driven autoscaling with KEDA
PDF
Scaling .net containers with event driven workloads
PDF
Event driven workloads on Kubernetes with KEDA
PDF
FestiveTechCalendar2022 - Getting Started with Azure Container Apps.pdf
PPTX
AZUG Lightning Talk - Application autoscaling on Kubernetes with Kubernetes E...
Event Driven Autoscaling using KEDA - MVP
Distributed Event Driven Systems with KEDA.pdf
Autoscaling containers with event driven workloads
Event driven autoscaling with KEDA
Scaling .net containers with event driven workloads
Event driven workloads on Kubernetes with KEDA
FestiveTechCalendar2022 - Getting Started with Azure Container Apps.pdf
AZUG Lightning Talk - Application autoscaling on Kubernetes with Kubernetes E...

Similar to Autoscale applications based on external events with KEDA.pdf (20)

PDF
KEDA.pdf
PDF
Serverless Event Driven Containers with KEDA
PPTX
NDC London 2021 - Application Autoscaling Made Easy With Kubernetes Event-Dri...
PPTX
Microsoft Partners - Application Autoscaling Made Easy With Kubernetes Event-...
PPTX
Application Autoscaling Made Easy with Kubernetes Event-Driven Autoscaling (K...
PDF
Azure-Container-Apps.pdf
PPTX
Global Azure Virtual - Application Autoscaling with KEDA
PDF
Scaling an Event-Driven Architecture with IBM and Confluent | Antony Amanse a...
PDF
Event-driven autoscaling through KEDA and Knative Integration | DevNation Tec...
PDF
Azure Container Apps
PDF
Elevate Your Builds: Next-Gen CI/CD with Azure Container Apps and KEDA
PDF
Cncf event driven autoscaling with keda
PDF
Event driven autoscaling with keda
PPTX
Azure Container Apps
PDF
Build Secure Portable Applications using AKS and its ecosystem
PPTX
Autoscaling with Kubernetes
PDF
"Production scenarios with Azure Сontainer Apps", Stanislav Lebedenko
PPTX
KubeCon China 2019 - Building Apps with Containers, Functions and Managed Ser...
PDF
Scaling containers with keda
PDF
Scaling Infrastructure at Picnic
KEDA.pdf
Serverless Event Driven Containers with KEDA
NDC London 2021 - Application Autoscaling Made Easy With Kubernetes Event-Dri...
Microsoft Partners - Application Autoscaling Made Easy With Kubernetes Event-...
Application Autoscaling Made Easy with Kubernetes Event-Driven Autoscaling (K...
Azure-Container-Apps.pdf
Global Azure Virtual - Application Autoscaling with KEDA
Scaling an Event-Driven Architecture with IBM and Confluent | Antony Amanse a...
Event-driven autoscaling through KEDA and Knative Integration | DevNation Tec...
Azure Container Apps
Elevate Your Builds: Next-Gen CI/CD with Azure Container Apps and KEDA
Cncf event driven autoscaling with keda
Event driven autoscaling with keda
Azure Container Apps
Build Secure Portable Applications using AKS and its ecosystem
Autoscaling with Kubernetes
"Production scenarios with Azure Сontainer Apps", Stanislav Lebedenko
KubeCon China 2019 - Building Apps with Containers, Functions and Managed Ser...
Scaling containers with keda
Scaling Infrastructure at Picnic
Ad

More from Nilesh Gule (20)

PDF
API Management in the AI Era - Azure Singapore.pdf
PDF
Infuse Intelligence Into your App with Foundry Local.pdf
PDF
Enhance GitHub Copilot using MCP - Enterprise version.pdf
PDF
API Management in the AI Era session GAB Melbourne
PDF
GitHub Copilot Agent Mode - Azure Builders Melbourne
PDF
Festive Tech Calendar -2024 Supercharge Kubernetes Debugging with k8sGPT.pdf
PDF
Code Creativity and Customers- Navigating the Generative AI Landscape - Austr...
PDF
Supercharge Kubernetes Debugging with k8sGPT.pdf
PDF
Portable Multi-cloud Applications with Dapr.pdf
PDF
k8sug Melbourne - Improve Kubernetes with k8sGPT
PDF
Code Creativity and Customers- Navigating the Generative AI Landscape.pdf
PDF
Improve Monitoring And Observability for Kubernetes with OSS tools.pdf
PDF
Modular Architecturs for Resilience and Adaptability.pdf
PDF
Singapore JUG - Open Telemetry.pdf
PDF
Cloud Native Ninja - Getting Started with Kubernetes - Part 9.pdf
PDF
Cloud Native Ninja - PT8 - Containerize React app.pdf
PDF
Cloud Native Ninja - PT8 - Containerize React app.pdf
PDF
Modular Architecturs for resilience and Adaptability.pdf
PDF
Modular Architecturs for resilience and Adaptability.pdf
PDF
Cloud Native Ninja - PT7 - Containerize Go apps.pdf
API Management in the AI Era - Azure Singapore.pdf
Infuse Intelligence Into your App with Foundry Local.pdf
Enhance GitHub Copilot using MCP - Enterprise version.pdf
API Management in the AI Era session GAB Melbourne
GitHub Copilot Agent Mode - Azure Builders Melbourne
Festive Tech Calendar -2024 Supercharge Kubernetes Debugging with k8sGPT.pdf
Code Creativity and Customers- Navigating the Generative AI Landscape - Austr...
Supercharge Kubernetes Debugging with k8sGPT.pdf
Portable Multi-cloud Applications with Dapr.pdf
k8sug Melbourne - Improve Kubernetes with k8sGPT
Code Creativity and Customers- Navigating the Generative AI Landscape.pdf
Improve Monitoring And Observability for Kubernetes with OSS tools.pdf
Modular Architecturs for Resilience and Adaptability.pdf
Singapore JUG - Open Telemetry.pdf
Cloud Native Ninja - Getting Started with Kubernetes - Part 9.pdf
Cloud Native Ninja - PT8 - Containerize React app.pdf
Cloud Native Ninja - PT8 - Containerize React app.pdf
Modular Architecturs for resilience and Adaptability.pdf
Modular Architecturs for resilience and Adaptability.pdf
Cloud Native Ninja - PT7 - Containerize Go apps.pdf
Ad

Recently uploaded (20)

PPTX
observCloud-Native Containerability and monitoring.pptx
PDF
Getting Started with Data Integration: FME Form 101
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Developing a website for English-speaking practice to English as a foreign la...
PDF
Getting started with AI Agents and Multi-Agent Systems
PDF
A novel scalable deep ensemble learning framework for big data classification...
PPT
What is a Computer? Input Devices /output devices
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PDF
Unlock new opportunities with location data.pdf
PDF
Hindi spoken digit analysis for native and non-native speakers
PDF
A review of recent deep learning applications in wood surface defect identifi...
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PPTX
Tartificialntelligence_presentation.pptx
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PPTX
Modernising the Digital Integration Hub
PDF
STKI Israel Market Study 2025 version august
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
Architecture types and enterprise applications.pdf
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PDF
sustainability-14-14877-v2.pddhzftheheeeee
observCloud-Native Containerability and monitoring.pptx
Getting Started with Data Integration: FME Form 101
Assigned Numbers - 2025 - Bluetooth® Document
Developing a website for English-speaking practice to English as a foreign la...
Getting started with AI Agents and Multi-Agent Systems
A novel scalable deep ensemble learning framework for big data classification...
What is a Computer? Input Devices /output devices
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
Unlock new opportunities with location data.pdf
Hindi spoken digit analysis for native and non-native speakers
A review of recent deep learning applications in wood surface defect identifi...
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
Tartificialntelligence_presentation.pptx
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
Modernising the Digital Integration Hub
STKI Israel Market Study 2025 version august
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
Architecture types and enterprise applications.pdf
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
sustainability-14-14877-v2.pddhzftheheeeee

Autoscale applications based on external events with KEDA.pdf

  • 1. Autoscale Applications based on external events with KEDA Nilesh Gule @nileshgule
  • 2. $whoami { “name” : “Nilesh Gule”, “website” : “https://www.HandsOnArchitect.com", “github” : “https://GitHub.com/NileshGule" “twitter” : “@nileshgule”, “linkedin” : “https://www.linkedin.com/in/nileshgule”, “YouTube” : “https://www.YouTube.com/@nilesh-gule” “likes” : “Technical Evangelism, Cricket”, “co-organizer” : “Azure Singapore UG” }
  • 4. @nileshgule KEDA Kubernets based Event Driven Autoscaling Scaling in Kubernetes KEDA Overview TechTalks demo with RabbitMQ Autoscaling with KEDA KEDA Architecture Agenda
  • 5. Pre-requisites • Self contained application with all its dependencies Docker • Orchestrates containers • Self healing • Service discovery • Scaling Kubernetes • Dockerhub / private container registry • Repository for storing container images Container Registry • Managed Kubernetes service on Azure • Native integration with other Azure services like Azure Active Directory (AAD), Azure Container registry (ACR), Azure Container Instances (ACI), Azure Monitor etc. Azure Kubernetes Service (AKS)
  • 6. Kubernetes scaling options Horizontal Pod Autoscaler Vertical Pod Autoscaler Cluster Autoscaler Manual
  • 7. TechTalks Application Architecture TechTalks Consumer TechTalks Producer TechTalks Frontend (UI) Message Broker Polyglot Programming
  • 12. ScaledObject apiVersion: keda.k8s.io/v1alpha1 kind: ScaledObject metadata: name: rabbitmq-consumer namespace: default labels: deploymentName: rabbitmq-consumer-deployment spec: scaleTargetRef: deploymentName: rabbitmq-consumer pollingInterval: 5 # Optional. Default: 30 seconds cooldownPeriod: 30 # Optional. Default: 300 seconds minReplicaCount: 1 # Optional. Default: 0 maxReplicaCount: 30 # Optional. Default: 100 triggers: - type: rabbitmq metadata: queueName: hello queueLength : ‘5’ authenticationRef: name: trigger-auth-rabbitmq-host
  • 14. Run Containers at scale ❖KEDA supported scale triggers including Azure Event Hub, Apache Kafka, RabbitMQ, MongoDB, MySQL, PostgreSQL etc. ❖Robust autoscaling without managing complex infrastructure ❖Scale to zero and pay only for use by the second https://keda.sh/docs/2.11/scalers/
  • 15. Summary • Modern applications are loosely coupled and highly portable • AKS provides native integrations to Dapr and KEDA • KEDA helps to auto scale on metrics external to Kubernetes • Dapr tries to simplify the Microservices development and deployment • Dapr Components help to extract underlying functionality and provides abstractions • Make app portable to run in serverless as well as managed cloud services
  • 16. References https://www.youtube.com/@nilesh-gule https://dapr.io/ Dapr Publish and Subscribe Kubernetes Event Driven Autoscaling Serverless - Dapr and Azure Container Apps Comparison between ACA and AKS
  • 17. Containerize Apps Resources Cloud Native Ninja : https://github.com/NileshGule/cloud-native-ninja Azure Container Apps : https://github.com/NileshGule/techtalks-azure-container-apps-demo Slides Slideshare: https://www.slideshare.net/nileshgule/ Speaker Deck: https://speakerdeck.com/nileshgule/
  • 18. Nilesh Gule ARCHITECT | MICROSOFT MVP “Code with Passion and Strive for Excellence” nileshgule @nileshgule Nilesh Gule NileshGule www.handsonarchitect.com https://www.youtube.com/@nilesh-gule