Event-driven architecture basics
In classic integration, a system that needs to tell others about a change calls each of them, one by one, and waits for an answer. When S/4HANA creates a sales order, it might call the CRM, the warehouse system and a data platform. Every new receiver means another connection to build, and if one receiver is down, the sender has to deal with it.
Event-driven architecture turns this around. S/4HANA publishes one message, "sales order created", to an event broker. It does not know or care who is interested. Any application that wants the event subscribes to it, and the broker delivers a copy to each subscriber. Adding a fourth consumer needs no change in S/4HANA.
Why this matters
- Loose coupling. Publisher and consumers do not know each other's addresses, availability or technology.
- Real time. Consumers react the moment something happens, instead of polling every 15 minutes.
- Resilience. If the CRM is offline, its events wait in its queue, and the other consumers are not affected.
Two kinds of delivery
Direct messaging is fast and lightweight. The broker delivers to whoever is connected right now and keeps nothing. If a subscriber is offline, it misses the message. This suits high-volume data where the next value replaces the last one, such as sensor readings or price ticks.
Guaranteed messaging stores each message until the consumer confirms it processed it. Nothing is lost when a consumer or network goes down. Business events such as orders, invoices and deliveries almost always use guaranteed messaging.
Where Advanced Event Mesh fits
SAP offers two eventing services. SAP Event Mesh is a lighter BTP service for simpler, SAP-centric scenarios. Advanced Event Mesh, part of SAP Integration Suite and built on Solace PubSub+ technology, is the enterprise option: dedicated brokers, several protocols, high throughput, brokers linked across clouds and on-premise, and design tooling. Cloud Integration still does what it is good at, mapping and orchestration. AEM's job is distributing events reliably.
Lab 1 · Map the scenario
- Draw S/4HANA publishing "sales order created".
- Add three consumers: CRM, warehouse and an analytics store.
- Mark which consumers need guaranteed delivery and which could use direct messaging. Write one sentence on why.