ERPClimb logoERPClimb

SAP Architect Event-Driven Architecture Interview Questions

Event-Driven Architecture is a standard block in SAP Architect interviews. It is rarely asked as a definition; it is asked as a situation you have to talk your way through.

Event-Driven Architecture (EDA) for SAP landscapes covers designing loosely coupled, asynchronous communication between S/4HANA, BTP, and third-party systems using business events, message brokers, and event meshes. This topic explains why EDA matters for scalability and decoupling in Clean Core and hybrid ECC-to-S/4HANA landscapes, how to choose between point-to-point integration and event-driven patterns, and how to design, govern, secure, and operate event flows with attention to NFRs, migration, and rollback.

This page carries 10 reviewed SAP Architect event-driven architecture interview questions, each with a complete written answer and no sign-in required. The set breaks down into 3 foundational, 4 mid-level and 3 advanced questions, so you can start at the top for a first interview or skip ahead to the scenario-based items for a senior round.

Treat the answers as a starting structure, not a script. Interviewers in SAP Architect rounds follow up on whatever you sound least certain about, so the value is in being able to keep going after the first answer.

10 Event-Driven Architecture questions with answers

easyEvent-Driven Architecture

1. What are the core concepts of Event-Driven Architecture, and how would you explain them clearly in an SAP interview?

Event-Driven Architecture (EDA) for SAP landscapes covers designing loosely coupled, asynchronous communication between S/4HANA, BTP, and third-party systems using business events, message brokers, and event meshes. This topic explains why EDA matters for scalability and decoupling in Clean Core and hybrid ECC-to-S/4HANA landscapes, how to choose between point-to-point integration and event-driven patterns, and how to design, govern, secure, and operate event flows with attention to NFRs, migration, and rollback. Key lesson areas: Designing Event Producers, Consumers, and Schemas for SAP Landscapes; Governing, Migrating, and Operating an Event-Driven Landscape at Scale; Implementing Event-Driven Integration with SAP Event Mesh and Business Events; Reliability, Security, and Production Operations for Event-Driven Integrations; Why Event-Driven Architecture Matters in SAP Landscapes A practical look at how SAP enables event publishing and consumption through SAP Event Mesh on BTP and S/4HANA business events, including runtime flow, subscription setup, and integration with extension applications. An introduction to what Event-Driven Architecture is, why SAP landscapes are moving toward it, and how it differs from traditional point-to-point and batch integration approaches. Architect-level guidance on turning event-driven architecture from a point integration pattern into a governed, cost-controlled, and operable capability across ECC, S/4HANA, and BTP landscapes, including rollback and migration strategy. Explore advanced architectural concerns for running event-driven integrations reliably in production: delivery guarantees, idempotency, dead-letter handling, authentication/authorization, and monitoring across hybrid SAP landscapes. Learn how to design event producers and consumers in SAP systems, define event schemas and topics, and choose the right event channel technology for ECC, S/4HANA, and BTP integration scenarios.
easyEvent-Driven Architecture

2. Using this SAP project situation — A retail customer running S/4HANA private cloud alongside a legacy ECC warehouse system introduced an event backbone to notify a BTP-based fulfillment app whenever a sales order was confirmed — explain Governing, Migrating, and Operating an Event-Driven Landscape at Scale. What should happen, which concepts or process steps matter, and what common mistake would you avoid?

Architect-level guidance on turning event-driven architecture from a point integration pattern into a governed, cost-controlled, and operable capability across ECC, S/4HANA, and BTP landscapes, including rollback and migration strategy. Deep explanation: Event-driven architecture (EDA) delivers real value only when it survives contact with production: multiple teams publishing overlapping events, schema drift, replay needs during incidents, and finance asking why the integration bill grew. This lesson focuses on the governance, migration, and operations layer that architects are accountable for once the initial event backbone (message broker, event mesh, or BTP Advanced Event Mesh/Event Mesh) is technically working. Why it matters: without governance, EDA becomes 'point-to-point integration with extra hops' — every team invents its own event shape, naming, and retry logic, and nobody can safely evolve a producer without breaking silent consumers. Architects must treat events as public contracts with the same rigor as APIs, because consumers are often unknown at publish time. Event contract and schema governance: define an event catalog (owner, business meaning, key fields, PII classification, retention) before granting publish rights. Adopt a schema versioning policy — additive changes (new optional fields) are backward compatible; removing or renaming fields is a breaking change requiring a new version and a deprecation window. In clean-core landscapes, business events published from S/4HANA extensibility (via the SAP-delivered event model where available, or custom side-by-side services) must not leak internal table structures; the event payload should represent a business object state, not a technical record layout, to stay upgrade-safe. ECC vs S/4HANA vs BTP differences: ECC has no native event mesh; event-like behavior is usually simulated via change pointers, IDoc output, or custom triggers pushed into middleware (PI/PO, or a message broker) — treat this as 'near-real-time', not guaranteed low latency, and plan idempotent consumers because IDoc-based triggers can duplicate. S/4HANA on-premise and private cloud can integrate with SAP Event Mesh or a customer-chosen broker via BTP Integration Suite or custom ABAP outbound calls; exact business-event coverage depends on release and scenario, so verify availability rather than assuming parity with public cloud. S/4HANA Cloud public edition exposes a defined set of standard business events through SAP Event Mesh integration; custom extension of these events is constrained by clean-core extensibility rules, so plan custom events as separate, clearly namespaced streams rather than modifying delivered ones. NFRs architects must decide explicitly: delivery guarantee (at-least-once is the realistic default; design consumers to be idempotent using event IDs or business keys), ordering guarantee (per-partition/per-key ordering is often achievable, global ordering usually is not — avoid designing flows that assume it), latency SLA per event type (not all events need sub-second delivery), and throughput/backpressure handling (dead-letter queues, retry with backoff, circuit breaking on downstream failures). Security: enforce mutual TLS or equivalent transport security between producers, broker, and consumers; scope topic/queue access with least-privilege credentials per application, not shared broker-wide keys; classify event payloads for personal or financial data and apply masking or field-level encryption before publishing sensitive attributes, since once an event is broadcast it may reach consumers outside the original security boundary. Migration and rollback: when introducing EDA alongside an existing point-to-point or batch integration, run dual-mode (old and new paths active) during a transition window with reconciliation reports comparing outcomes; keep a documented rollback path (disable new subscribers, fall back to legacy interface) with a clear trigger condition, such as error rate above an agreed threshold. For incident recovery, ensure the broker or event store supports replay from an offset or dead-letter reprocessing, and test this in a non-production exercise before relying on it operationally. Cost and operations: broker/event mesh usage is typically metered by message volume, connections, or throughput tier; forecast growth from expected event volumes per business process and review invoices against forecast periodically. Establish monitoring for queue depth, consumer lag, and dead-letter volume, with alerting thresholds tied to business impact, and assign clear operational ownership per event domain so incidents are triaged quickly. Roadmap the introduction of EDA incrementally — start with one or two high-value, well-understood event types, prove governance and operations work, then expand — rather than attempting a landscape-wide big-bang adoption. Recommended practices: • Maintain an event catalog with owner, schema version, classification, and deprecation policy for every published event type • Design consumers to be idempotent by default, since at-least-once delivery is the realistic norm • Keep event payloads business-object-s
easyEvent-Driven Architecture

3. Using this SAP project situation — In a project introducing an S/4HANA private cloud system alongside legacy ECC and several BTP-based extension apps, the architecture team faced a case where three different downstream systems (a warehouse management add-on, a customer notification service, and a analytics data lake) all needed near-real-time notice of sales order changes — explain Why Event-Driven Architecture Matters in SAP Landscapes. What should happen, which concepts or process steps matter, and what common mistake would you avoid?

An introduction to what Event-Driven Architecture is, why SAP landscapes are moving toward it, and how it differs from traditional point-to-point and batch integration approaches. Deep explanation: Event-Driven Architecture (EDA) is an integration and application design style where systems communicate by publishing and reacting to events rather than by calling each other directly or waiting for scheduled batch jobs. An event is a fact that something happened in the past tense: a sales order was created, a goods receipt was posted, a business partner was changed. In traditional SAP integration, systems are often tightly coupled through synchronous RFC calls, IDocs processed in batch, or point-to-point interfaces built for a single consumer. This works but creates brittleness: every new consumer of data requires a new interface, senders must know about every receiver, and failures in one downstream system can block or delay the sender. In an event-driven model, a producing system publishes an event to a broker or event bus without knowing who, if anyone, is listening. Interested consumers subscribe to the event type and react independently, at their own pace. This decoupling is why EDA has become central to modern SAP architecture discussions, particularly in the context of S/4HANA and Clean Core. Clean Core strategy discourages direct table access, custom RFC chatter, and tight coupling into SAP's core code; instead it favors published, stable extension points such as APIs and events. Reacting to a business event (for example, a delivery being confirmed) is a cleaner extension pattern than polling a table or intercepting a user-exit inside the core. SAP's landscape has historically relied heavily on batch interfaces (nightly IDoc runs, ALE distribution, file-based EDI) and synchronous calls (BAPI/RFC, OData). Both have real limitations for modern real-time scenarios: batch introduces latency measured in hours, and synchronous point-to-point calls create availability coupling, where the sender's transaction can fail or slow down if a downstream system is unavailable. EDA addresses both problems by introducing an intermediary (broker) and an asynchronous, publish-subscribe model. The producer's transaction completes independently of how many consumers exist or whether they are currently available. It is important at this level to separate what is genuinely new about EDA from what is simply re-branded. IDoc-based ALE distribution has some publish-subscribe characteristics but is fundamentally document- and batch-oriented, tightly bound to specific message types, and lacks a general-purpose broker with topic-based routing, replay and fine-grained subscription management. Modern SAP event platforms, most notably SAP Event Mesh on BTP, and S/4HANA's built-in business event capabilities (where available), provide topic-based publish-subscribe with broker infrastructure, which is architecturally closer to industry EDA patterns like those built on Kafka or similar message brokers. A beginner-level way to think about EDA in SAP terms: instead of System A calling System B directly whenever a sales order is created, System A publishes 'SalesOrder.Created' to an event broker. System B, System C, and any future System D can independently subscribe to that same event without System A ever being modified. This is valuable for extensibility, resilience, and reducing the blast radius of failures, but it introduces new complexities: eventual consistency (consumers may process the event slightly later), ordering guarantees that must be explicitly designed, and the need for monitoring an entirely new piece of infrastructure - the broker itself. These trade-offs are the subject of later, more advanced lessons in this topic. Recommended practices: • Introduce EDA where genuine decoupling, multiple independent consumers, or near-real-time reactive behavior is needed, not as a default pattern for every integration • Clearly document event contracts (event name, payload structure, versioning approach) even though producer and consumer are decoupled at runtime • Evaluate whether existing SAP standard business events already exist before designing custom ones • Communicate to business stakeholders that eventual consistency, not immediate consistency, is the trade-off being accepted • Keep event payloads focused on the business fact that occurred rather than duplicating entire document structures unnecessarily Common mistakes to challenge: • Treating IDoc/ALE distribution as equivalent to true topic-based publish-subscribe EDA without acknowledging its batch and document-format limitations • Assuming EDA removes the need for interface documentation or contracts between producer and consumer • Introducing EDA everywhere in a landscape without evaluating whether a simpler synchronous call would be more appropriate for the specific latency and consistency needs • Ignoring that consumers now need their own error handling and idempotency logic since the producer no longer 'waits' for acknowledgement • Underestimating the operational overhead of introducing and monitoring a new broker component Interview angle: Interviewers common
mediumEvent-Driven Architecture

4. How would you apply Event-Driven Architecture in a real SAP project? Walk through the design or implementation approach.

A retail customer running S/4HANA Cloud public edition needed to notify a third-party warehouse management system whenever a delivery was confirmed, without making the delivery confirmation transaction wait on the external system's response. The architecture team designed a 'Delivery.Confirmed' event published through SAP Event Mesh, containing only the delivery number, plant, and confirmation timestamp. The warehouse system subscribed to the topic and used the delivery number to call the standard delivery API for full item detail. This kept the S/4HANA transaction fast and let the warehouse system process at its own pace, including during its own maintenance windows, because Event Mesh retained messages until they were consumed. A retail customer running S/4HANA private cloud alongside a legacy ECC warehouse system introduced an event backbone to notify a BTP-based fulfillment app whenever a sales order was confirmed. Initially each team defined its own event shape, and the fulfillment app broke twice when the order team added fields without notice. The architecture team introduced an event catalog with mandatory schema review, versioning rules, and a shared dead-letter queue dashboard. They also kept the legacy batch interface running in parallel for eight weeks, comparing daily reconciliation counts between the old batch feed and new event stream before decommissioning the batch job, with a documented rollback switch in case event delivery lag exceeded an agreed SLA. During a peak sales period, a consumer application processing 'Invoice.Created' events began failing intermittently due to a transient downstream tax service timeout. Because the events were not idempotent and there was no dead-letter monitoring, the retry mechanism caused duplicate invoice notifications to be sent to customers, generating support tickets. A follow-up architecture review introduced an idempotency check keyed on eventId, a dead-letter queue with alerting after three failed attempts, and a dashboard tracking consumer lag, which caught a similar downstream outage weeks later before it caused customer-visible duplication. During an S/4HANA private cloud implementation, a project team needed a warehouse execution partner system to react within minutes to delivery confirmations, rather than waiting for a nightly batch interface. The architecture team confirmed that the relevant business object in the S/4HANA release in scope supported standard event publishing, configured the connection to SAP Event Mesh, and built a small CAP-based listener on BTP that consumed the event and c
mediumEvent-Driven Architecture

5. Suppose you inherit an existing Event-Driven Architecture solution. How would you review it before making a change?

First understand the current business requirement, dependencies, configuration or code path, integrations, production usage, and known pain points. Do not redesign before establishing the existing behavior. Lesson areas to review: Designing Event Producers, Consumers, and Schemas for SAP Landscapes; Governing, Migrating, and Operating an Event-Driven Landscape at Scale; Implementing Event-Driven Integration with SAP Event Mesh and Business Events; Reliability, Security, and Production Operations for Event-Driven Integrations; Why Event-Driven Architecture Matters in SAP Landscapes Known mistakes: • Assuming every S/4HANA business object supports native event publishing without verifying against the specific release and edition • Publishing full document payloads in events by default, increasing coupling and payload size instead of publishing identifiers plus minimal context • Failing to design idempotent consumer logic, causing duplicate processing when the broker redelivers messages after a transient failure • Not establishing topic naming and versioning governance early, leading to inconsistent or conflicting event schemas across teams • Overlooking dead-letter queue monitoring, so failed messages silently accumulate without anyone noticing • Treating middleware-bridged events (from ECC via change pointers) as equivalent in reliability and timeliness to natively published S/4HANA business events • Assuming exactly-once delivery and building consumers that are not idempotent • Ignoring event ordering requirements and assuming events always arrive in sequence • No dead-letter queue or alerting, so failed events silently disappear or block processing • Granting broad topic access instead of least-privilege scoped credentials per application • Missing correlation IDs, making it impossible to trace a business transaction across asynchronous hops during incident investigation • Emitting full business documents as event payloads instead of thin events with reference keys, causing tight coupling and large message sizes • Assuming ECC has native cloud eventing capability without a middleware bridge • Using overly granular topics per field change, leading to topic sprawl and consumer complexity • Changing an existing event schema in a breaking way without versioning the topic • Treating every integration as a candidate for eventing even when synchronous request-response is simpler and sufficient • Treating events as internal implementation details instead of versioned public contracts, causing silent consumer breakage on schema changes • Assuming global messag
mediumEvent-Driven Architecture

6. A project encounters this situation while working on Implementing Event-Driven Integration with SAP Event Mesh and Business Events: During an S/4HANA private cloud implementation, a project team needed a warehouse execution partner system to react within minutes to delivery confirmations, rather than waiting for a nightly batch interface. Walk through how you would analyze the requirement or issue, what you would validate, and how you would test the solution before release.

A practical look at how SAP enables event publishing and consumption through SAP Event Mesh on BTP and S/4HANA business events, including runtime flow, subscription setup, and integration with extension applications. Deep explanation: Moving from EDA concepts to implementation requires understanding the concrete building blocks SAP provides. On SAP Business Technology Platform, SAP Event Mesh is the managed message broker service most commonly referenced for event-driven integration scenarios. It provides queues and topics that allow producers to publish messages and consumers to subscribe, supporting both point-to-point queue patterns and publish-subscribe topic patterns. Event Mesh is typically consumed via AMQP or REST-based APIs, and BTP applications (CAP-based services, Kyma workloads, or ABAP environment extensions) can act as producers or consumers depending on the scenario. On the S/4HANA side, certain standard business processes can raise business events when SAP-delivered event enablement exists for that process (for example, changes to specific business documents). Where such standard eventing exists, S/4HANA can publish structured event messages, often aligned to a defined event type and schema, to a configured event broker such as Event Mesh. It is important to be precise here: not every business object or transaction in S/4HANA has standard event enablement, and the exact set of events varies by release and by whether the system is on-premise, private cloud, or public cloud. Architects must verify current event availability against the specific S/4HANA release and edition in scope rather than assuming universal coverage. The typical runtime flow in a hybrid landscape looks like this: a business transaction is posted in S/4HANA (e.g., a delivery is confirmed). If that business object is enabled for eventing, the system constructs an event message containing key identifying information (often not the full document, but enough for consumers to look up further detail via API if needed) and publishes it to the configured broker endpoint. The broker (Event Mesh) routes the message to a topic. One or more subscribing applications, potentially running on Kyma, in a CAP application, or in another cloud service, receive the message asynchronously and execute their own logic - updating a downstream system, triggering a notification, or feeding an analytics pipeline. For ECC systems or S/4HANA scenarios without native business event support, achieving a similar pattern typically requires a middleware layer: an integration flow (for example, in SAP Integration Suite) that polls, listens to change pointers, or intercepts an outbound IDoc/proxy call, transforms it into an event message format, and publishes it to the broker. This hybrid approach lets an architect introduce event-driven consumption patterns for downstream systems even when the source system itself lacks native eventing, at the cost of additional middleware complexity and an extra point of monitoring. Subscription management is a key implementation detail: consumers must register interest in specific topics, and namespace/topic naming conventions become an architectural governance concern, especially as the number of event types grows across a landscape. Message durability, retry behavior, and dead-letter handling for messages that repeatedly fail to be consumed are configuration considerations that determine how resilient the overall flow is. At this intermediate level, the key skill is understanding the producer-to-broker-to-consumer chain, recognizing which components exist for a given SAP deployment, and identifying where middleware bridging is required versus where native eventing can be used directly. Recommended practices: • Verify actual event enablement for the specific business object, S/4HANA release, and deployment edition before designing an integration around it • Keep event payloads lean, favoring identifiers and minimal context over full document replication • Design consumers to be idempotent, since at-least-once delivery semantics are common in broker-based messaging • Establish topic naming conventions and schema versioning governance before onboarding multiple consumer teams • Monitor dead-letter queues and broker health as a first-class operational concern, not an afterthought • Use middleware bridging deliberately and document it clearly when native eventing is unavailable in a source system Common mistakes to challenge: • Assuming every S/4HANA business object supports native event publishing without verifying against the specific release and edition • Publishing full document payloads in events by default, increasing coupling and payload size instead of publishing identifiers plus minimal context • Failing to design idempotent consumer logic, causing duplicate processing when the broker redelivers messages after a transient failure • Not establishing topic naming and versioning governance early, leading to inconsistent or conflicting event schemas across teams • Overlooking dead-letter queue monitoring, so failed messages silently accumulate without anyone noticing • Treating middleware-bridged events (from E
mediumEvent-Driven Architecture

7. A project encounters this situation while working on Designing Event Producers, Consumers, and Schemas for SAP Landscapes: A retail customer running S/4HANA Cloud public edition needed to notify a third-party warehouse management system whenever a delivery was confirmed, without making the delivery confirmation transaction wait on the external system's response. Walk through how you would analyze the requirement or issue, what you would validate, and how you would test the solution before release.

Learn how to design event producers and consumers in SAP systems, define event schemas and topics, and choose the right event channel technology for ECC, S/4HANA, and BTP integration scenarios. Deep explanation: Once you understand why event-driven architecture (EDA) matters for decoupling systems, the next step is turning that intent into a concrete design: who publishes events, who consumes them, what the event payload looks like, and how topics or channels are organized so the landscape remains manageable as it grows. Event producers in SAP contexts are typically business processes that reach a meaningful state change: a sales order is created, a delivery is confirmed, a material master is changed, or a financial posting completes. In S/4HANA Cloud (public and private editions), extension developers use released, SAP-provided business events where available, exposed through the ABAP RESTful application programming model or through SAP Event Mesh integration channels. In ECC or classic S/4HANA on-premise scenarios without native event enablement, producers are often custom-built: a change pointer, an output determination step, or a custom class raises an event message after a business transaction commits, then publishes it to a broker. This is important to state accurately-classic ECC does not have a native cloud-style event mesh; any eventing in ECC is typically built through middleware (SAP Process Orchestration, SAP Cloud Integration, or a custom adapter) that watches for changes and re-emits them as events. Consumers subscribe to topics relevant to their business capability. A common architect decision is topic granularity: too coarse (one giant 'SalesOrderChanged' topic carrying every field) creates tight coupling because every consumer must understand the full schema and filter what it needs; too fine-grained (one topic per field change) creates topic sprawl and operational overhead. A practical middle ground is business-event-oriented topics such as 'SalesOrder.Created', 'SalesOrder.Cancelled', 'Delivery.Confirmed', each with a minimal, stable payload plus a reference key that consumers can use to pull additional detail via an API if needed (the 'thin event, rich lookup' pattern). This reduces payload coupling and avoids leaking internal data structures across the event bus. Schema governance is a first-class architectural concern. Each event type should have a documented, versioned schema (commonly JSON with a defined structure, sometimes formalized with a schema registry pattern) including event type name, version, timestamp, business key, and a payload section. Backward-compatible changes (adding optional fields) should be preferred over breaking changes; breaking changes require a new topic version (e.g., 'SalesOrder.Created.v2') rather than silently changing the existing contract, because event consumers are often independently deployed and cannot be forced to upgrade in lockstep with producers. On the transport side, SAP Event Mesh (a BTP service) is the standard managed broker for cloud-native SAP eventing, supporting publish-subscribe messaging with topics and queues. For hybrid landscapes, SAP Cloud Integration or SAP Process Orchestration often acts as a bridge, translating IDocs, RFCs, or proxy calls from ECC/on-premise systems into cloud events, and vice versa for consumers that still expect synchronous calls. Architects must decide, scenario by scenario, whether a given integration truly benefits from asynchronous decoupling or whether a simple synchronous API call remains simpler and more appropriate-eventing is not the right tool for every integration, particularly when the consumer needs an immediate response or strong consistency. Recommended practices: • Design topics around business events, not database tables or technical changes • Prefer thin events with business keys plus API lookups over embedding full payloads • Version event schemas explicitly and avoid breaking changes to existing versions • Use SAP Event Mesh or equivalent managed brokers for cloud-native scenarios, and middleware bridges for ECC/on-premise sources • Document event contracts formally so consumer teams can build against a stable, published interface Common mistakes to challenge: • Emitting full business documents as event payloads instead of thin events with reference keys, causing tight coupling and large message sizes • Assuming ECC has native cloud eventing capability without a middleware bridge • Using overly granular topics per field change, leading to topic sprawl and consumer complexity • Changing an existing event schema in a breaking way without versioning the topic • Treating every integration as a candidate for eventing even when synchronous request-response is simpler and sufficient Interview angle: Interviewers often probe whether a candidate understands the difference between thin events with reference lookups versus fat events carrying full payloads, and whether they can justify when synchronous APIs are preferable to asynchronous events. Be ready to discuss schema versioning strategy and how you would bridge event capability gaps between ECC and S/4HANA/BTP in a hybrid landscape
hardEvent-Driven Architecture

8. A production issue is reported in Event-Driven Architecture. What would you check first, and how would you troubleshoot it systematically?

Start by reproducing and scoping the issue, then validate the relevant master/configuration/runtime data and isolate the failing step before changing anything. Common failure patterns from the lesson set: • Assuming every S/4HANA business object supports native event publishing without verifying against the specific release and edition • Publishing full document payloads in events by default, increasing coupling and payload size instead of publishing identifiers plus minimal context • Failing to design idempotent consumer logic, causing duplicate processing when the broker redelivers messages after a transient failure • Not establishing topic naming and versioning governance early, leading to inconsistent or conflicting event schemas across teams • Overlooking dead-letter queue monitoring, so failed messages silently accumulate without anyone noticing • Treating middleware-bridged events (from ECC via change pointers) as equivalent in reliability and timeliness to natively published S/4HANA business events • Assuming exactly-once delivery and building consumers that are not idempotent • Ignoring event ordering requirements and assuming events always arrive in sequence • No dead-letter queue or alerting, so failed events silently disappear or block processing • Granting broad topic access instead of least-privilege scoped credentials per application • Missing correlation IDs, making it impossible to trace a business transaction across asynchronous hops during incident investigation • Emitting full business documents as event payloads instead of thin events with reference keys, causing tight coupling and large message sizes • Assuming ECC has native cloud eventing capability without a middleware bridge • Using overly granular topics per field change, leading to topic sprawl and consumer complexity • Changing an existing event schema in a breaking way without versioning the topic • Treating every integration as a candidate for eventing even when synchronous request-response is simpler and sufficient • Treating events as internal implementation details instead of versioned public contracts, causing silent consumer breakage on schema changes • Assuming global message ordering across all producers when only per-key ordering is actually guaranteed by the broker • Publishing raw internal table structures as event payloads, creating tight coupling that breaks on S/4HANA upgrades or clean-core extensibility changes • Skipping a parallel-run or reconciliation period when replacing a batch/point-to-point interface with an event-driven one • No dead-letter queue or
hardEvent-Driven Architecture

9. What are the most important design decisions, trade-offs, and best practices in Event-Driven Architecture?

• Design all consumers to be idempotent using eventId-based deduplication logic • Use business-object partitioning keys when strict ordering matters • Implement dead-letter queues with defined ownership and alerting thresholds • Scope broker credentials with least privilege per application and topic • Propagate correlation IDs across producer, broker, and consumer for traceability • Monitor consumer lag, dead-letter depth, and end-to-end latency as standard production metrics • Design topics around business events, not database tables or technical changes • Prefer thin events with business keys plus API lookups over embedding full payloads • Version event schemas explicitly and avoid breaking changes to existing versions • Use SAP Event Mesh or equivalent managed brokers for cloud-native scenarios, and middleware bridges for ECC/on-premise sources • Document event contracts formally so consumer teams can build against a stable, published interface • Introduce EDA where genuine decoupling, multiple independent consumers, or near-real-time reactive behavior is needed, not as a default pattern for every integration • Clearly document event contracts (event name, payload structure, versioning approach) even though producer and consumer are decoupled at runtime • Evaluate whether existing SAP standard business events already exist before designing custom ones • Communicate to business stakeholders that eventual consistency, not immediate consistency, is the trade-off being accepted • Keep event payloads focused on the business fact that occurred rather than duplicating entire document structures unnecessarily • Maintain an event catalog with owner, schema version, classification, and deprecation policy for every published event type • Design consumers to be idempotent by default, since at-least-once delivery is the realistic norm • Keep event payloads business-object-shaped, not internal-table-shaped, to remain resilient to clean-core and upgrade changes • Run legacy and event-driven interfaces in parallel with reconciliation before decommissioning the old path • Instrument queue depth, consumer lag, and dead-letter volume with business-impact-based alerting thresholds • Introduce EDA incrementally on a small number of high-value event types before scaling landscape-wide • Explicitly document rollback triggers and steps before go-live, and test replay/dead-letter reprocessing in advance • Verify actual event enablement for the specific business object, S/4HANA release, and deployment edition before designing an integration around it • Keep event payloads lean
hardEvent-Driven Architecture

10. You are the senior consultant/architect responsible for Reliability, Security, and Production Operations for Event-Driven Integrations. The project situation is: During a peak sales period, a consumer application processing 'Invoice. How would you assess the design, identify the highest-risk failure modes, and define the evidence required before approving it for production?

Explore advanced architectural concerns for running event-driven integrations reliably in production: delivery guarantees, idempotency, dead-letter handling, authentication/authorization, and monitoring across hybrid SAP landscapes. Deep explanation: Designing a clean event schema is necessary but not sufficient; production-grade event-driven architecture requires deliberate decisions about reliability guarantees, failure handling, security, and observability, because asynchronous systems fail differently than synchronous ones and those failures are often silent unless explicitly monitored. Delivery guarantees are a foundational trade-off. Most brokers, including SAP Event Mesh, offer at-least-once delivery rather than exactly-once, meaning a consumer may receive the same event more than once, particularly after retries, network issues, or consumer restarts. Architects must design consumers to be idempotent: processing the same event twice should not create duplicate business documents or double-post financial entries. A common pattern is to track processed event IDs (using the eventId in the payload) in a local table or cache and skip reprocessing if the ID has already been handled successfully. Without this, duplicate goods receipts, duplicate notifications, or duplicate postings become a recurring production incident, especially after broker or network hiccups that trigger redelivery. Ordering guarantees matter too. Some brokers preserve order within a partition or queue but not across the whole topic; if a consumer depends on strict sequence (for example, processing 'Created' before 'Cancelled' for the same order), the architecture must either use a partitioning key tied to the business object (so all events for one order land on the same partition) or the consumer must be designed to tolerate and reconcile out-of-order arrival, such as checking document status before acting rather than assuming linear sequence. Failure handling requires explicit dead-letter strategies. When a consumer repeatedly fails to process an event (due to a bug, a downstream system outage, or a malformed payload), that event should not silently disappear or block the queue indefinitely. Configure dead-letter queues or equivalent quarantine mechanisms so failed events are captured, alerted on, and can be reprocessed after a fix, with clear ownership for who investigates dead-letter items and how backlog is cleared without violating downstream idempotency assumptions. Security spans authentication, authorization, and payload sensitivity. Producers and consumers connecting to SAP Event Mesh typically authenticate using OAuth2 client credentials bound to BTP service instances; access should be scoped so a given application can only publish or subscribe to the topics it legitimately owns, following least-privilege principles rather than granting broad wildcard topic access. Event payloads should avoid carrying sensitive personal or financial data beyond what is operationally necessary, and where sensitive data must be included, encryption in transit (already provided by TLS to the broker) should be complemented by strict access control on subscriptions and by data minimization at the payload design stage, consistent with data protection obligations relevant to the industry and region. Observability is where many event-driven implementations fall short in production. Unlike a synchronous API call that fails visibly at the calling point, an event that is published but never consumed, or consumed but silently fails business logic, can go unnoticed for hours or days. Production operations should include monitoring for publish failures, consumer lag or backlog growth, dead-letter queue depth, and end-to-end latency from event publication to successful consumption. Correlation IDs propagated from the originating business transaction through the event and into any downstream API calls make it possible to trace a single business flow across asynchronous hops during incident investigation, which is essential because standard SAP transaction-level tracing tools do not automatically follow a message once it leaves the source system through an external broker. Recommended practices: • Design all consumers to be idempotent using eventId-based deduplication logic • Use business-object partitioning keys when strict ordering matters • Implement dead-letter queues with defined ownership and alerting thresholds • Scope broker credentials with least privilege per application and topic • Propagate correlation IDs across producer, broker, and consumer for traceability • Monitor consumer lag, dead-letter depth, and end-to-end latency as standard production metrics Common mistakes to challenge: • Assuming exactly-once delivery and building consumers that are not idempotent • Ignoring event ordering requirements and assuming events always arrive in sequence • No dead-letter queue or alerting, so failed events silently disappear or block processing • Granting broad topic access instead of least-privilege scoped credentials per application • Missing correlation IDs, making it impossible to trace a business transaction across asynchronous hops duri

Related lesson

SAP Event-Driven Architecture Tutorial (Part 1)

Related topics

Next practice step

Go deeper on this topic