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

Create Instance of SAP Event Mesh

Create an instance of SAP Event Mesh service from SAP Business Technology Platform Cockpit and understand in detail about it's each property.

Overview

🎓 beginner 15 min. SAP Event MeshBeginnerCloud

You will learn

  • โœ”How to create an SAP Event Mesh service instance
  • โœ”How to access the Service Key of a SAP Event Mesh service instance
Unknown U Unknown November 27, 2024
Created by November 12, 2019
Contributors

Prerequisites

Prerequisites

  • SAP Business Technology Platform environment with SAP Event Mesh entitlement. Note: SAP Event Mesh is currently only available in Commercial accounts. It is unavailable in SAP Business Technology Platform Trial.

Steps

Intro

IMPORTANT: It is really important to learn the basics of messaging before going ahead with this tutorial. Check out The Basics of SAP Event Mesh.


Step 1 Create an instance
โ€”

  1. Open the SAP Business Technology Platform cockpit, Cloud Foundry environment.

  2. Navigate to your subaccount.

  3. Expand Services and choose Instances and Subscriptions.

  4. Choose Create.

  5. Select Event Mesh and then default service plan (for Factory landscape), else dev plan (for Trial landscape).

  6. Select Cloud Foundry as the runtime environment. Select your space then, enter an instance name. Choose Next.(for this exercise, we will consider only Cloud Foundry runtime environment)

  7. Specify parameters using a JSON file (to create an instance of default plan)

    JSON
    {
    "emname": "<yourmessageclientname>",
    "namespace": "<yourorgname>/<yourmessageclientname>/<uniqueID>",
    "version": "1.1.0",
    "options": {
        "management": true,
        "messagingrest": true,
        "messaging": true
    },
    "rules": {
        "queueRules": {
            "publishFilter": [
                "${namespace}/*"
            ],
            "subscribeFilter": [
                "${namespace}/*"
            ]
        },
        "topicRules": {
            "publishFilter": [
                "${namespace}/*"
            ],
            "subscribeFilter": [
                "${namespace}/*"
            ]
        }
    }

} ```

Service descriptor defines the message client. Each service instance is a message client that contains a name, namespace and a set of rules.

The following section describes each parameter used in the service descriptor.

- **emname** - It specifies the name of the message client. Should be unique for a subaccount.

- **namespace** - The namespace ensures that every message client within a subaccount is unique. The namespace should be provided as a prefix and is not done automatically. The namespace contains exactly 3 segments (max length of 24 characters) with recommended approach as orgName/clientName/uniqueId.

- **options** -  It is used to define the access channels for the message client.

- **rules** -  Defines the access privileges for the message client. In order to allow access to a queue or a topic, the namespace of the corresponding owner message client has to be added
  1. Specify parameters using a JSON file (to create an instance of dev plan)

    JSON
    {
    	"emname": "<your-emname>",
    	"options": {
    		"management": true,
    		"messagingrest": true
    	}
    }
  2. Review the information you have provided and choose Create.

    SAP Event Mesh Instance
    SAP Event Mesh Instance

An instance of SAP Event Mesh is created.

Each Event Mesh instance represents a message client. Each message client has a set of queues and topics to which it is associated. All these queues and topics belonging to one message client are exposed to other message clients using its unique credentials. This entire set of queues and topics within different message clients in a subaccount can send and receive messages or events to each other using the service.

Step 2 Understanding Service Key of SAP Event Mesh
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 2
1. Create an instance 2. Understanding Service Key of SAP Event Mesh

Learn more →