ERPClimb logoERPClimb
Event Mesh
BTP & Integrationintermediate 4 min read

BTP Event Mesh Part 2: Queues, Subscriptions and Security

Preview · a free account unlocks the full lesson

Key takeaway

Configure Event Mesh: service instance with a service descriptor (namespace, options, topic and queue rules), queues and topic subscriptions, webhooks for push delivery, OAuth client credentials for clients, and least-privilege rules for publish/consume.

In this lessonShow sections

Visual overview

CONFIGURATIONSetting up Event MeshInstance, rules, queues, delivery1Service instanceDescriptor: namespace + rulesDescriptor2QueueOne per consumer purposeQueue?Topic subscriptionPattern matches producer topic?No → events never arrive; fix patternYes3Webhook or pullPush to HTTPS / client readsDeliveryAuthenticated clientsOAuth from service keysSecurityTip: one service key per client makes publishers traceable.

Explanation

Part 1 explained the concepts behind Event Mesh; this part covers configuring it. A service descriptor defines the instance's name, its namespace, and the rules governing which topics or queues a given client is allowed to publish to or subscribe from. Queues are created and then subscribed to specific topics, which can include wildcards. Webhooks push messages from a queue out to an HTTP endpoint, though clients can also pull messages instead. Clients authenticate using OAuth client credentials obtained from a service key.

The main risk in the rules is being too permissive: a rule that lets a client publish to any topic effectively lets that client impersonate other producers on the same instance. Using a consistent namespace, such as company/app/version, keeps topics organized and keeps the rules governing them simple to reason about. Sharing a single service key across multiple producers is also worth avoiding, since it makes it impossible to tell afterward which producer actually published a given event.

Free account

Create a free account to keep reading

You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.

  • Full explanation
  • Code example
  • Real project scenario
  • Common mistakes
  • Best practices
  • Interview angle

One tap with Google works too. Every topic keeps its first lesson open to everyone.

Keep exploring

Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.