Architecture Guide #25 • Event-Driven BTP Architecture

SAP Event Mesh Topic Taxonomy & Subscription Architecture Guide

A production engineering guide on designing scalable hierarchical topic taxonomies, wildcard queue subscriptions, and Dead-Letter Queue (DLQ) strategies across SAP BTP and S/4HANA.

Interactive Matrix Architect: Automatically design your topic taxonomy, configure queue bindings, and export your BTP service descriptor JSON with our In-Browser Event Mesh Topic Architect.

1. The Anatomy of an Enterprise Topic Taxonomy

In distributed enterprise systems, poorly named topics create routing chaos and make queue filtering impossible. SAP adheres to a strict hierarchical URI convention:

<org_prefix>/<source_system>/<domain>/<business_object>/<event_type>/v<version>

Examples of standard Clean Core topics:

2. Wildcard Filtering: Event Mesh vs Advanced Event Mesh

Queue subscriptions use wildcards to dynamically route multiple events to single processing queues without creating separate bindings for every event action:

Pattern Type SAP Event Mesh SAP Advanced Event Mesh (Solace) Example Match
Exact Match .../order/created/v1 .../order/created/v1 Only order/created/v1
Single-Level Wildcard .../order/* .../order/*/v1 (* wildcard) order/created/v1, order/changed/v1
Multi-Level Subtree sap/s4hana/* sap/s4hana/sales/> (> wildcard) All events in the entire sales hierarchy

3. Dead-Letter Queues (DLQ) & Poison Message Handling

Poison Message Risk: A corrupted event payload that triggers an unhandled crash in your consumer application will be repeatedly redelivered by Event Mesh forever, exhausting CPU resources and blocking downstream queue processing.

To prevent queue starvation:

  1. Set maxRedeliveries = 3 on the primary queue.
  2. Bind a dedicated Dead-Letter Queue (e.g. Q_SALES_EVENTS_DLQ) as the dead-letter target.
  3. Configure SAP Cloud ALM or PagerDuty webhooks to alert engineers whenever the DLQ message count exceeds 0.

4. BTP Service Descriptor Configuration

The event-mesh-service.json configuration file governs broker access controls:

{
  "emname": "enterprise-mesh",
  "namespace": "sap/s4hana/erp",
  "rules": {
    "topicRules": {
      "publishFilter": ["sap/s4hana/erp/*"],
      "subscribeFilter": ["sap/s4hana/erp/*"]
    }
  }
}

Master Enterprise RAP & Clean Core Architecture

Get the complete 400+ page guide with end-to-end architectures, testing patterns, and migration blueprints:

Unlock Complete Enterprise Suite (80% Off • €9.80) → Also available in Paperback & Kindle on Amazon ($19.99)