After completing this lesson, you will be able to:
Explain what Kyma Eventing is
List which technologies Kyma Eventing uses
Introduction to Kyma Eventing
In Kyma, you can send and receive events with the help of the Kyma Eventing processing back end. While providing this, end users don’t have to carry out any protocol or back end by themselves. Therefore, Kyma Eventing aims to make the events’ subscribing and publishing process easier for the users.
Eventing with Kyma
When looking at the Kyma Eventing process from beginning to end technology-wise, Kyma Eventing process uses:
HTTP-post requests (HTTP requests are delivered via POST-requests in terms of sending and receiving the events),
(Subscription) Custom Resources (CR) (which abstracts the creation of different Kubernetes primitives).
Now the question is, how does the actual process of Kyma Eventing look like? First of all, it is important to mention, that Kyma Eventing is based on the Pub/Sub messaging pattern. This means that messages which are triggered in Kyma Eventing, are not sent to subscribers on a direct path but instead are published to a messaging back end, where they are processed, filtered and then sent to subscribers.
Kyma Eventing on the SAP BTP, Kyma runtime
Understanding this process is important when using the SAP BTP, Kyma runtime to run your extensions, which should be executed when a certain event gets emitted. For example, the SAP SuccessFactors systems publishes the event that a new hire joined the company. The extension can subscribe to the event and can be used to carry out further actions with this data. For example to enroll the new hire to an onboarding session.
While having the delivery and processing flow of Kyma in mind, Kyma Eventing can be used within the SAP BTP framework for two scenarios:
When Business Events are consumed from connected SAP & Non-SAP Solutions (Note: Only CX solutions support Kyma Eventing, for example: SAP Commerce Cloud, SAP Sales Cloud, FSM. Other solutions like SAP S/4HANA currently do not send events via Kyma Eventing, as they send them directly to event mesh from where one needs to setup a webhook. For further information on this, please visit this page):
When In-Cluster Events are used for event-driven microservices:
In the Kyma Dashboard, you can view and update the subscriptions for a specific workload,
or you can do it on a namespace-level under Configuration.
Summary
In Kyma, you can send and receive events with the help of the Kyma Eventing processing back end. While doing that, technologies like NATS (in the SAP BTP, you can switch this back end to SAP Event Mesh), JetStream, HTTP-post requests as well as (Subscription) Custom Resources are used. You can use Eventing in the SAP BTP, Kyma runtime for two fundamental scenarios:
Business Events are consumed from connected SAP and non-SAP Solutions,
In-Cluster Events are used for event-driven microservices.
Furthermore, in the SAP BTP, Kyma runtime you can use the Dashboard to access useful features and to review Events.