SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Trigger a Microservice with an Event

Trigger a microservice to run when an event is published into SAP BTP, Kyma runtime.

Overview

🎓 intermediate 20 min. SAP BTP Kyma RuntimeIntermediateCloudSAP Business Technology Platform

You will learn

  • โœ”How to trigger a microservice with an event
Unknown U Unknown May 7, 2026
Created by May 8, 2024
Contributors

Prerequisites

Steps

Intro

This tutorial relies on the Commerce mock application to publish events into SAP BTP, Kyma runtime. After binding the commerce mock application to the dev namespace, we will create a service instance of the SAP Commerce Cloud - Events. The service instance will allow for any microservice or lambda function within the dev namespace to subscribe to these events by defining an event subscription. The subscription pairs an event source, the commerce mock application, and the event type, order.created, to a subscriber which in this case will be the Go PostgreSQL API microservice.


Step 1 Clone the Git repository
โ€”

  1. Go to kyma-runtime-extension-samples.

  2. Choose the Code button and choose one of the options to download the code locally, or simply run the following command using your CLI at your desired folder location:

    Shell/Bash
    git clone https://github.com/SAP-samples/kyma-runtime-extension-samples
Step 2 Explore the sample
+
Step 3 Apply an event subscription
+
Step 4 Test scenario
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 4
1. Clone the Git repository 2. Explore the sample 3. Apply an event subscription 4. Test scenario

Learn more →