Quick revision
The short answer
Before making event-driven architecture the company default, I would raise that it replaces database transactions with eventual consistency, which pushes duplicates, ordering and reconciliation into every consumer. It also makes flows harder to debug and audit without strong tracing, turns event schemas into long-lived contracts that need versioning and governance, and adds broker platform costs. My recommendation would be to adopt events where decoupling or scale justify them and keep synchronous, transactional designs where they are simpler.
What to remember
In this answer, we saw that event-driven architecture trades database transactions for eventual consistency. That moves duplicates, ordering and reconciliation into every consumer, demands tracing and auditing tools, turns events into contracts that need governance, and brings platform and training costs. The senior position is not for or against events, but a decision rule: events where decoupling or scale justify them, synchronous transactional designs where they are simpler, and a review that makes the costs visible.
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.
Before making event-driven architecture the company default, I would raise that it replaces database transactions with eventual consistency, which pushes duplicates, ordering and reconciliation into every consumer. It also makes flows harder to debug and audit without strong tracing, turns event schemas into long-lived contracts that need versioning and governance, and adds broker platform costs. My recommendation would be to adopt events where decoupling or scale justify them and keep synchronous, transactional designs where they are simpler.
Background to this question
Architecture defaults spread quickly: once a pattern is declared the standard, hundreds of services adopt it whether it fits or not, and the costs show up years later. A principal engineer is expected to see those long-term costs before the decision is made, and to turn a debate about fashion into a decision about fit. In this answer, we will look at what changes when we move from transactions to events, go through the costs one by one with examples, and finish with a decision rule and how to present it.
1What We Give Up When We Leave the Transaction
In a system built on one database, a transaction gives us atomicity, all changes or none, and a consistent view: right after an order is placed, the stock, the invoice and the order are all visible together. If something fails, a rollback puts everything back.
In an event-driven design, a service changes its own data and publishes an event, and other services react later. There is no rollback across services. For some time, seconds normally and hours during an incident, different services disagree about the state of the world. This is eventual consistency, and it is a real trade, not a free upgrade: we gain independence and scale, and we pay with complexity that someone has to handle.
2Cost 1: Every Consumer Inherits the Complexity
With a broker such as Kafka, delivery is at least once, so every consumer must be idempotent. Order is guaranteed only per partition key, so consumers must cope with events that arrive in an unexpected order across keys. And when events are lost to a bug or a misconfigured retention, data drifts apart, so someone must build reconciliation jobs that compare systems and repair them.
In a monolith, one team solves consistency once, in the database. In an event-driven estate of 80 services, each consuming team solves it again, and some will solve it badly. The cost grows with the number of consumers, not with the number of events.
| Concern | One transaction | Events across services |
|---|---|---|
| Atomic change | Commit or roll back | Saga with compensating steps |
| Duplicates | Not possible | Every consumer deduplicates |
| Ordering | Database order | Only per key, consumers must cope |
| Finding a bug | One stack trace, one log | Trace across many async hops |
| Changing the data shape | One migration | Versioned schema, old consumers live on |
| Fixing bad data | One update | Reconciliation and replay |
3Cost 2: Debugging and Auditing
When a customer asks why their refund never arrived, we have to follow a chain of asynchronous steps across services, topics and retries, some of which happened hours apart. Without distributed tracing that follows a message across hops, correlation ids in every event, and searchable logs, that investigation takes days. Auditors ask similar questions: who changed this balance, and why. In an event-driven estate, these tools are not optional extras; they are part of the price, and the platform team must fund them before the first service goes live.
4Cost 3: Event Schemas Become Contracts
An event published to a topic is read by teams we may not even know about. Changing a field name breaks them. So events become long-lived public contracts, and we need what any public API needs: a schema registry, compatibility rules such as only adding optional fields, versioning, ownership, and a process for retiring old versions. Without governance, after a few years nobody dares to change an event, and the system freezes at its original design.
5Cost 4: Platform and People
A production Kafka platform needs clusters across availability zones, monitoring, capacity planning, upgrades, security, and people on call for it, or a managed service with a significant monthly bill. Teams also need training: thinking in events, sagas and idempotency is a skill, and the first year of mistakes is part of the cost.
6A Decision Rule Instead of a Default
So I would not oppose events; I would oppose a blanket default. My proposal would be a rule with examples. Use events where they bring clear value: notifying many independent consumers, integrating systems owned by different teams, absorbing load spikes, or feeding analytics. Keep a synchronous call or a single transaction where the steps must be atomic, where one team owns all the data, or where the user is waiting for the result anyway.
I would present it with one concrete flow from our own systems, shown both ways, with an estimate of the work each consumer would need. Then I would offer a review step: new designs that choose events document their idempotency, ordering, schema ownership and reconciliation plan. That keeps the door open while making the cost visible at decision time.
- Must these changes be atomic?YesKeep them in one service and one transactionNoContinue
- Do several independent teams need to react?YesEvents are a good fitNoContinue
- Is the user waiting for the result?YesA synchronous call is simplerNoEvents can absorb load
- Design reviewIdempotency, ordering, schema owner, reconciliation
4 steps in order. Play them, or step through them one at a time.
The review makes the hidden costs explicit before the design is approved.
7Follow-up questions
Is eventual consistency acceptable to the business?
Often yes, but it must be asked explicitly. Showing a stakeholder that a new order may take up to 30 seconds to appear in the invoicing screen, or that a refund may be delayed during an incident, lets them decide. Surprises in production are what make eventual consistency politically expensive.
How would you handle teams who already built event-driven systems badly?
Without blame. I would add the missing pieces in order of risk: idempotent consumers first, then tracing and correlation ids, then reconciliation for the most valuable data, and use their incidents as examples in the guidelines.
What metric would show the decision was right?
Lead time for changes, incident counts and time to resolve for cross-service flows, and the number of reconciliation corrections per month. If event-driven services ship faster without rising incidents, the pattern is paying for itself in that area.
8Conclusion
In this answer, we saw that event-driven architecture trades database transactions for eventual consistency. That moves duplicates, ordering and reconciliation into every consumer, demands tracing and auditing tools, turns events into contracts that need governance, and brings platform and training costs. The senior position is not for or against events, but a decision rule: events where decoupling or scale justify them, synchronous transactional designs where they are simpler, and a review that makes the costs visible.
Open with
I would support events where they fit, but I would argue against making them the default for everything, and I would explain the long-term costs concretely. First, we lose the database transaction.
Then, if they want more
With events, delivery is at least once and ordering is only per key, so every consumer must be idempotent, cope with ordering, and we need reconciliation jobs for when data drifts. That cost is paid by every consuming team, not once.
Second, debugging and auditing get much harder: a refund that never arrived can involve five asynchronous hops, so we must fund distributed tracing and correlation ids before the first service ships.
Third, event schemas become public contracts read by teams we do not know, so we need a schema registry, compatibility rules and owners, or nobody can change anything after a few years. Fourth, running Kafka is a platform with real cost and on-call load, plus training.
So I would propose a decision rule: use events for fan-out to independent consumers, cross-team integration and load absorption; keep one transaction where changes must be atomic or one team owns the data. And I would add a design review where any event-based design documents idempotency, ordering, schema ownership and reconciliation.
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 Data JPA reference, Hibernate ORM documentation, Spring Framework reference, Transaction management
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 "Event-driven architecture is being promoted as the default for all new systems. What...": https://scrivio-interview-library.netlify.app/databases/transactions/7c8d701902/