Skip to content
FossShelf
Home / Categories / For DevOps Engineers

Keda

Event-driven Kubernetes autoscaling with 70+ scalers and scale to zero

Replaces Kedify

10.73K starsApache-2.0reviewed 15 Oct 2026last commit 13 Nov 2026
Screenshot of Keda

Who it's for

Backend engineers building message-queue consumers

KEDA scales consumer deployments directly to queue depth on Kafka, RabbitMQ, SQS, and Azure Service Bus. When the queue is empty, replicas go to zero; when messages arrive, Kubernetes adds consumers automatically. This removes the need for manual replica tuning or always-on idle consumers.

Your consumer workloads are already CPU-bound and scale well on HPA CPU metrics. KEDA adds value when queue depth drives latency, not when CPU is the bottleneck.

Platform engineers managing multi-tenant Kubernetes clusters

KEDA can be installed cluster-wide and configured per-workload via ScaledObject custom resources. Teams across the cluster can define their own event-driven scaling rules without touching the platform layer. The vendor-agnostic scaler catalog supports heterogeneous workloads across different cloud services.

You manage a single-tenant cluster with few workloads. The operational overhead of maintaining KEDA may not be worth it relative to static replica counts or simple HPA rules.

DevOps teams running self-hosted CI/CD job runners

KEDA's GitHub Actions scaler and Azure Pipelines scaler scale runner deployments from zero when jobs are queued and back to zero when the queue clears. This avoids the cost of always-on runner fleets while keeping job wait times low during burst periods.

You are already using a managed runner service (GitHub-hosted runners, Azure-managed agents) and the cost is acceptable. Self-hosted KEDA runners add operational complexity that may not be justified unless cost or compliance requires it.

Cloud architects designing cost-optimized Kubernetes deployments

Scale-to-zero reduces idle workloads to zero replicas outside peak windows. Combined with event-driven scale-up, this is effective for batch jobs, nightly processing pipelines, or seasonal workloads that see periods of zero traffic.

Your workloads run at near-constant load with no idle periods. Scale-to-zero brings the most benefit to workloads with significant idle windows; always-on workloads see minimal savings from KEDA.

The problem

Kubernetes ships with the Horizontal Pod Autoscaler (HPA), which scales pods based on CPU and memory utilization. That works for compute-bound workloads, but fails for event-driven architectures: a message queue consumer sits at near-zero CPU when the queue is empty, then gets flooded with thousands of events in seconds. HPA sees no CPU spike until the consumer is already far behind. Teams working around this problem typically write custom metrics adapters, configure Prometheus external metrics pipelines, or pay for a managed autoscaling product tied to a specific cloud vendor. Manual static replica counts and cron-based scaling are brittle and rarely match real traffic patterns. What is missing is a way to tell Kubernetes to scale a deployment based on queue depth, database query results, or any other application-level signal, without building that plumbing from scratch.

How it works

70+ Built-in Scalers

KEDA includes native scalers for message queues (Kafka, RabbitMQ, SQS, Azure Service Bus, NATS), databases (PostgreSQL, MySQL, MongoDB, Cassandra), cloud metrics (AWS CloudWatch, Datadog, Prometheus), CI/CD systems (GitHub Actions, Azure Pipelines), and more. No custom adapter code is required for most event sources.

Scale to Zero

Reduces deployment replicas to zero when no events are queued, then scales back up when new events arrive. The built-in Kubernetes HPA cannot go below one replica; KEDA removes that floor for event-driven workloads. This directly reduces compute costs during idle periods without manual intervention.

HPA Integration Without Conflict

KEDA registers as a Kubernetes external metrics server and feeds event signals to the existing Horizontal Pod Autoscaler. It does not overwrite or conflict with current HPA configurations. CPU- and memory-based HPA rules and KEDA event rules can coexist on the same workload or cluster.

Multiple Workload Types

Scales Kubernetes Deployments, StatefulSets, Jobs, and custom resources that implement the /scale sub-resource. Job scaling is useful for batch workloads that should run exactly once per event, such as data processing pipelines triggered by an S3 upload or a queue message.

Extensible with Custom Scalers

Teams can write bring-your-own scalers using KEDA's external scaler gRPC interface when the 70+ built-ins do not cover an event source. Community-maintained scalers are available for additional systems. The architecture keeps the core component small while allowing unbounded extension.

Azure Functions on Kubernetes

Runs and scales Azure Functions inside a Kubernetes cluster using the same KEDA event sources. This supports teams that want Azure Functions logic without the Azure-managed runtime, such as those running on-premise or in a hybrid environment.

Features

  • 70+ Built-in Scalers
  • Scale to Zero
  • HPA Integration Without Conflict
  • Multiple Workload Types
  • Extensible with Custom Scalers
  • Azure Functions on Kubernetes

Recommended for this setup

Strengths

  • CNCF Graduated Project: KEDA graduated from the Cloud Native Computing Foundation, the same graduation tier as Kubernetes, Prometheus, Helm, and Flux. This status reflects sustained adoption, security audits, and governance maturity. Active maintenance is backed by Microsoft, Red Hat, Dynatrace, and other CNCF members, which reduces the risk of abandonment or stagnation.
  • Vendor-Agnostic Scaler Coverage: Scalers span AWS (SQS, Kinesis, DynamoDB, CloudWatch), Azure (Service Bus, Event Hubs, Blob Storage, Pipelines), GCP (Pub/Sub, Cloud Tasks, Spanner, Stackdriver), and dozens of on-premise systems. Switching cloud providers requires changing the scaler configuration, not the KEDA installation itself.
  • Apache-2.0 License with No Per-Cluster Fees: Apache-2.0 permits commercial use, modification, and distribution with no copyleft requirements. Teams can run KEDA internally for any business workload and modify the source without open-sourcing their changes. There are no per-cluster or per-workload license fees, unlike managed autoscaling products.
  • No External Dependencies: KEDA runs as a single lightweight component with no external databases, control planes, or cloud services required. It integrates with the Kubernetes API server via custom resource definitions and requires only the cluster itself to operate, unlike managed autoscaling products that require a cloud account or additional infrastructure.

Trade-offs

  • Requires a Running Kubernetes Cluster: KEDA is a Kubernetes-native component and runs exclusively inside Kubernetes. Teams on bare-metal servers, traditional VMs, or Docker Swarm cannot use it without first migrating to Kubernetes. It is not a general-purpose autoscaling layer for non-Kubernetes workloads.
  • Custom Scalers Require gRPC Interface Knowledge: Writing a bring-your-own scaler requires implementing KEDA's external scaler gRPC interface. While SDKs exist for Go and other languages, teams without prior gRPC experience will find this a barrier for event sources not already covered by the 70+ built-ins.
  • 269 Open Issues as of October 2026: KEDA's GitHub issue tracker carries 269 open issues, including edge-case bugs with specific cloud provider scalers and observability gaps. The project is actively maintained, but teams using niche scalers may encounter issues that take time to resolve through the upstream project.

Tech stack

Languages
Go, Makefile, Shell, Python, Dockerfile
Frameworks
—
Databases
—
Tooling
Kubernetes

FAQ

Does KEDA replace the Kubernetes Horizontal Pod Autoscaler?

No. KEDA extends the HPA rather than replacing it. KEDA acts as an external metrics server that feeds event-based signals to the HPA, so both components work together. Existing CPU- and memory-based HPA policies continue to function alongside KEDA's event-driven rules on the same cluster.

Can KEDA scale Kubernetes workloads down to zero replicas?

Yes. KEDA supports scale-to-zero, which reduces replica counts to zero when no events are pending, then restores them when events arrive. The standard Kubernetes HPA has a minimum floor of one replica; KEDA removes that floor for event-driven workloads, cutting compute cost during idle periods.

What event sources does KEDA support out of the box?

KEDA ships with 70+ built-in scalers covering message queues (Kafka, RabbitMQ, SQS, Azure Service Bus, NATS), databases (PostgreSQL, MySQL, MongoDB, Redis), CI/CD systems (GitHub Actions, Azure Pipelines), observability tools (Prometheus, Datadog, New Relic), and cloud-native services across AWS, Azure, and GCP. Custom external scalers can extend this list.

Does KEDA work on on-premise Kubernetes clusters?

Yes. KEDA runs on any Kubernetes cluster, including self-managed on-premise deployments, cloud-managed options like EKS or AKS, and edge environments. It has no external dependencies beyond the cluster, so there is no requirement for a specific cloud provider or managed Kubernetes service.

How does KEDA compare to cloud-provider autoscaling services?

Cloud-provider autoscaling services are typically tied to their own queue and event systems. KEDA is vendor-agnostic: the same KEDA installation can scale based on an SQS queue, a Kafka topic, and a Prometheus metric simultaneously. Running KEDA yourself also avoids per-unit pricing that some managed autoscaling products charge.

Similar tools

More in DevOps Engineers