An event-driven architecture is based on the concept of decoupled relationships between event producers that create events, and event sinks, or consumers, that receive events.
Knative Eventing uses standard HTTP POST requests to send and receive events between event producers and sinks. These events conform to the CloudEvents specifications, which enables creating, parsing, sending, and receiving events in any programming language.
Knative Eventing supports the following use cases:
You can send events to a broker as an HTTP POST, and use binding to decouple the destination configuration from your application that produces events.
You can use a trigger to consume events from a broker based on event attributes. The application receives events as an HTTP POST.
To enable delivery to multiple types of sinks, Knative Eventing defines the following generic interfaces that can be implemented by multiple Kubernetes resources:
Able to receive and acknowledge an event delivered over HTTP to an address defined in the
status.address.url field of the event. The Kubernetes
Service resource also satisfies the addressable interface.
Able to receive an event delivered over HTTP and transform it, returning
1 new events in the HTTP response payload. These returned events may be further processed in the same way that events from an external event source are processed.
You can propagate an event from an event source to multiple event sinks by using: