SAP

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

You will learn

  • How to trigger a microservice with an event
Thomas Jung T Thomas Jung August 21, 2026
Created on May 8, 2024
Contributors

More from Devtoberfest Planner

See all 227 tutorials by Devtoberfest Planner →

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