Integrationadvanced

SAP Event Mesh & Event-Driven Integration

Publish-subscribe, asynchronous event-driven integration patterns using SAP Event Mesh and CloudEvents-based messaging.

Event-driven integration questions increasingly appear in advanced integration interviews because it represents a genuinely different architectural pattern from the request/response and batch/file-based integration styles covered elsewhere, and interviewers use it to check whether a candidate can reason about decoupling, not just point-to-point message routing.

Event-driven integration is like a public announcement system in a train station - the announcer (producer) broadcasts 'Platform 4 delayed' to anyone listening without knowing who's actually present, and any number of travelers (consumers) can react to it independently, versus a request/response call which is like personally walking up to one specific staff member and waiting for them to answer your direct question.

Key Concepts

1
SAP Event Mesh (a BTP service) implements the publish-subscribe pattern: a producer publishes an event (a small, standardized message - increasingly following the CloudEvents specification for a consistent envelope structure across different event sources) to a named topic without knowing or caring who, if anyone, is listening, and any number of independent consumers can subscribe to that topic and react to the event asynchronously, completely decoupled from the producer and from each other. This is architecturally different from both a direct API call (the caller must know the specific receiver and wait, or at least explicitly address it) and classic IDoc/ALE (which, while asynchronous, is still fundamentally a point-to-point or explicitly-configured-partner distribution model) - with pub/sub, new consumers can be added later without the producer ever being modified or even aware.
2
SAP's own applications increasingly publish standard business events (S/4HANA emits events like a sales order being created or a business partner being changed) that can trigger downstream automation - a classic use case being triggering a CPI integration flow, a BTP-hosted application, or a notification the moment a business event happens, rather than a downstream consumer having to poll for changes on a schedule, which is both more real-time and less wasteful than periodic polling. Event-driven patterns also naturally support extending S/4HANA without touching its core - a side-by-side extension application can subscribe to relevant business events and add custom behavior triggered by them, aligning with the clean-core extensibility principle discussed elsewhere.
3
A senior-level answer should be able to contrast event-driven (pub/sub, decoupled, reactive to something that already happened) against request/response integration (synchronous, tightly coupled to knowing the specific receiver, expects an immediate answer) and explain when each is appropriate - event-driven fits scenarios with multiple potential consumers, evolving consumer sets, or where near-real-time reactivity matters more than an immediate confirmed response, while request/response remains correct when the caller genuinely needs an immediate, specific answer back (like a real-time price lookup).