Quick revision
The short answer
Events reduce compile-time coupling but add runtime coupling that is harder to see, so they pay off only where a business process is naturally asynchronous and has several independent consumers that the producer must not wait for. In-process events are an internal design tool without durability or cross-team contracts; broker-based events earn their cost with many consumers. The long-term bill is schema evolution, replay, idempotency and tracing, and it should be budgeted from the start rather than discovered.
What to remember
In this answer, we reflected on the path from synchronous calls to in-process events, brokers and streaming. Events trade compile-time coupling for runtime coupling that tools cannot see. In-process events are a code structuring tool without durability or cross-team contracts, broker events pay off with many independent consumers the producer must not wait for, and the long-term costs, schema evolution, replay, idempotency and tracing, should be budgeted up front. Event-driven integration is a choice for naturally asynchronous processes, not a default.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
Events reduce compile-time coupling but add runtime coupling that is harder to see, so they pay off only where a business process is naturally asynchronous and has several independent consumers that the producer must not wait for. In-process events are an internal design tool without durability or cross-team contracts; broker-based events earn their cost with many consumers. The long-term bill is schema evolution, replay, idempotency and tracing, and it should be budgeted from the start rather than discovered.
Why this question is asked
Many organisations have travelled the same road: synchronous calls everywhere, then in-process events to untangle modules, then a broker and finally event streaming. Each step solved real problems and created new ones. Interviewers ask a twenty-year engineer to reflect on this because the useful knowledge is not how to configure Kafka, but when an event-driven design is the right call and what it really costs over five years. In this answer, we will look at what each stage bought and cost, explain the coupling trade that events make, list the costs that arrive later, and finish with how a senior engineer decides for a new flow.
1What Each Stage Bought and Cost
Synchronous calls are the easiest to understand: the caller asks, waits and gets an answer or an error. Their cost is that the caller's availability and latency include every service it calls. If checkout calls five services in a row at 99.9 percent availability each, checkout is at best about 99.5 percent available.
In-process events, such as Spring application events, let one module announce a fact without knowing who reacts. They cost almost nothing, but they live in memory and never leave the process. Brokers made events durable and let many services consume them independently. Event streaming, with retained logs that can be replayed, made it possible to rebuild state and add consumers months later. Each stage gave more independence and more operational responsibility.
| Stage | What it bought | What it cost |
|---|---|---|
| Synchronous calls | simple, immediate answers | availability and latency add up |
| In-process events | compile-time decoupling, no infrastructure | no durability, hidden runtime flow |
| Broker events | durable, many independent consumers | operations, idempotency, ordering |
| Event streaming | replay, new consumers on old data | schema evolution, retention, tracing |
2The Coupling Trade Events Make
Events are often described as decoupling, and that is half true. The producer no longer imports or calls the consumer, so compile-time coupling disappears. But the consumer still depends on the producer's event: its fields, its meaning, when it is sent and how often. That runtime coupling is invisible in the code. A developer renaming a field in OrderPlaced cannot see, in the IDE, that three teams' consumers will break.
Debugging suffers the same way. With a synchronous call, a stack trace shows who called whom. With events, a customer complaint about a missing loyalty point means tracing an event through a producer, a topic and a consumer, possibly hours apart. So the lesson I would pass on is: events move coupling from where tools can see it to where only discipline can manage it.
3In-Process Events Are a Design Tool, Not Integration
Inside one service, events are an excellent way to keep modules apart. But they give no durability and no contract across teams. A recurring mistake I have seen is treating them as if they were messages: a team adds an after-commit listener that sends an email and later discovers that every deploy loses a few. The right rule is that in-process events are for structuring code; anything that must survive a crash goes through an outbox, and anything another team consumes goes through a broker with a published schema.
4The Costs That Arrive Later
Event-driven systems are cheap to start and expensive to own, and the expensive parts arrive one or two years in. Schema evolution comes first: events stored on a log outlive the code that wrote them, so every change must stay readable by old and new consumers, which needs a schema registry or strict compatibility rules. Replay comes next: when a consumer had a bug, we want to reprocess last week's events, which only works if events are retained and consumers can be rewound safely.
Idempotency follows from replay and from at-least-once delivery: every consumer must handle the same event twice without double effects, for example by recording processed event ids. Tracing is the last: without trace ids carried in event headers and a tool that follows them, nobody can answer what happened to order 42. Each of these costs a few weeks to build well. Budgeted up front they are part of the design; discovered during an incident, they cost much more.
5How to Decide for a New Flow
When a team proposes event-driven integration for a new flow, a senior engineer asks a few questions in order. Is the business process naturally asynchronous, meaning the business would accept the effect happening seconds or minutes later? Payment authorisation at checkout usually is not; sending a receipt is. Are there, or will there be, several independent consumers? One consumer that the producer needs an answer from is a request, not an event. Must the producer be protected from consumers' slowness and failures? If the answers point to events, we then pick the lightest mechanism that gives the durability needed, and budget the schema, replay, idempotency and tracing work in the plan.
- Does the caller need an answer now?YesUse a synchronous callNoNext question
- Can the effect happen later?YesNext questionNoKeep it synchronous
- Several consumers, or another team?YesBroker events with a schema and outboxNoIn-process event, outbox if it must not be lost
- Budget the costsschema evolution, replay, idempotency, tracing
4 steps in order. Play them, or step through them one at a time.
6Follow-up questions
Is event-driven design a good default for new systems?
No. It is a good choice where the business process is asynchronous and consumers are independent. As a default style it spreads hidden runtime coupling and operational cost into places where a simple call would have been clearer and more reliable.
How do you make the hidden runtime coupling visible?
Publish event schemas in a registry with compatibility checks, keep a catalogue of which services produce and consume each event, and carry trace ids in event headers so a distributed trace can follow a business action across producers and consumers.
What would you do with a system that already overuses events?
Map the flows first, then pick the ones causing incidents. Flows where the producer actually waits for a consumer's effect, or where order across several events matters, are often better as explicit calls or an orchestrated workflow. I would not rewrite everything; I would fix the flows that cost the most.
7Conclusion
In this answer, we reflected on the path from synchronous calls to in-process events, brokers and streaming. Events trade compile-time coupling for runtime coupling that tools cannot see. In-process events are a code structuring tool without durability or cross-team contracts, broker events pay off with many independent consumers the producer must not wait for, and the long-term costs, schema evolution, replay, idempotency and tracing, should be budgeted up front. Event-driven integration is a choice for naturally asynchronous processes, not a default.
Open with
The main lesson I would pass on is that events do not remove coupling, they move it. The producer no longer calls the consumer, so compile-time coupling goes away, but the consumer now depends on the event's fields, meaning and timing, and that dependency is invisible in the code.
Then, if they want more
Debugging also gets harder, because a problem means following an event through producer, broker and consumer instead of reading a stack trace. Second, in-process events like Spring's application events are a design tool for structuring one service.
They give no durability and no contract between teams, so anything that must survive a crash goes through an outbox, and anything another team consumes goes through a broker with a published schema.
Third, broker events pay off when there are several independent consumers and the producer must not wait for them or fail with them, for example an order placed event feeding billing, shipping and analytics. Fourth, the real cost arrives later: schema evolution, replay, idempotent consumers and end-to-end tracing.
Each is a few weeks of work, and I would put them in the plan from the start. So when a team proposes events, I ask whether the business process is naturally asynchronous, whether there are several consumers, and whether we have budgeted those costs. If not, a plain call is usually the better design.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- Spring Framework reference, Core technologies
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "Over a decade your organisation moved from synchronous calls to in-process events to...": https://scrivio-interview-library.netlify.app/spring-boot/spring-events/85b0109dde/