Kyma Eventing Subscriptions and Event-Driven Functions
A Kyma Eventing Subscription is a Kubernetes custom resource that configures a workload — such as a microservice or Function — to receive specific event types published within the Kyma environment. Developers use it to build event-driven extensions of SAP systems, allowing a single Subscription to be configured to receive multiple event types and trigger the appropriate workload when matching events arrive. Care must be taken with Subscription filters, as misconfiguration can cause a subscriber to receive irrelevant events that do not match the intended criteria. This pattern is central to deploying event-driven workloads in the Kyma environment to extend SAP systems.
Tutorials that teach this
Docs explaining this concept
Prerequisites
- Concept Event-Driven Architecture for SAP ERP
- Concept Kyma Eventing with NATS Backend Kyma Eventing with the NATS backend is the default event-processing infrastructure in Kyma that allows developers to publish and subscribe to events within a cluster. A developer uses it to decouple microservices by triggering workloads — such as a microservice or a serverless function — in response to events emitted by other components. This is typically configured by defining a `Subscription` custom resource that binds an event type to a target service, enabling event-driven communication without direct service-to-service calls.
- Concept Applying Kubernetes Resources with kubectl
- Concept Adding and Configuring Kyma Modules (Serverless, Eventing, NATS)
- Concept Kyma Eventing Backend Configuration The Kyma Eventing backend configuration determines which messaging infrastructure the [Eventing module](https://help.sap.com/docs/btp/sap-business-technology-platform/08dfcdcaf4ff4914b70c8173731a9188?locale=en-US&state=PRODUCTION&version=Cloud) uses to process and deliver events within a Kyma runtime. Developers can choose between two supported backends: NATS, which is available natively within Kyma, or SAP Event Mesh, a managed messaging service on SAP BTP. When opting for SAP Event Mesh, developers must [configure it explicitly](https://help.sap.com/docs/btp/sap-business-technology-platform/407d1266017f4b529b61665fa7408c41?locale=en-US&state=PRODUCTION&version=Cloud) to connect it as the active eventing backend for their Kyma environment.
- Concept kubectl Resource Retrieval
- Concept Deploying a Microservice to Kyma Runtime