Knative Eventing lets you build event-driven applications on Kubernetes without managing the underlying messaging infrastructure. Connect event sources — such as ApsaraMQ for RocketMQ, ApsaraMQ for Kafka, Container Registry, and EventBridge — to Knative Services or functions, and route events using the broker and trigger model.
How it works
Knative Eventing uses three core components to move events from producers to consumers:
-
Event source: Ingests events from an external system (such as a code repository or message queue) and forwards them to a broker.
-
Broker: Acts as an event bus, receiving events from sources and making them available for routing.
-
Trigger: Filters events from a broker based on event attributes and delivers matching events to an event sink.
The following diagram shows how these components interact:
| Component | Role |
|---|---|
| Event sources | The Knative community provides a variety of event sources, such as GitHub and Kafka. You can also ingest events from message services such as EventBridge. |
| Event processing | Brokers route events to event sinks or consumers. Create one or more triggers to filter or subscribe to specific events. Events are consumed by serverless applications managed by Knative. |
| Event consumption | Automatically release images in Container Registry when updates occur. Automatically build images when code is submitted. Run cron jobs and AI-assisted audio and video processing pipelines. |
Use cases
-
CI/CD automation: Trigger an image build in Container Registry whenever code is committed to a repository.
-
Scheduled tasks: Run workloads on a schedule using cron jobs without managing dedicated infrastructure.
-
AI media processing: Route audio and video upload events to processing functions for AI-assisted transcoding or analysis.
-
Consume without a publisher: Use a trigger to consume events from a broker based on event attributes and process them in a Knative Service — without coupling the consumer to a specific source.
What's next
-
Deploy Knative Eventing through the console.
-
Send your first event with Knative Eventing to get started quickly.