Scrivio Interview library
ConceptFoundations6 min read · updated 13 November 2026

A team says that replacing REST calls between their services with Kafka events will make the services decoupled.

Explain which kinds of coupling events remove, which remain, and which new problems the team takes on.

Events remove temporal and availability coupling, because the producer does not wait for consumers and keeps working when they are down, and location coupling, because the producer does not know who consumes. They keep schema coupling, semantic coupling and assumptions about ordering and keys, and they hide who depends on what, so ownership and a catalogue of consumers matter more than with REST. The team also takes on eventual consistency that users can see, duplicates and out-of-order delivery, and flows that are harder to trace; events fit facts many parties react to, while a query that needs an answer now is still better as a synchronous call.

Why this question is asked

Decoupled is one of the most used words in architecture discussions, and one of the least precise. Teams moving from REST to Kafka often expect that every kind of dependency between services will disappear, and they are surprised a year later when a field rename breaks three teams they did not know existed. Interviewers ask this to see whether we can name the different kinds of coupling and say exactly which ones events help with. In this answer, we will recap what coupling means, go through what events remove, what remains, what gets hidden, and the new problems that come with asynchronous flows.

1A Quick Recap: What Coupling Means

Two services are coupled when a change or a failure in one forces something on the other. It helps to split that into kinds. Temporal coupling means both must be running at the same time for the interaction to work. Location coupling means one must know where the other is, or that it exists. Schema coupling means they must agree on the shape of the data, the field names and types. Semantic coupling means they must agree on what the data means and when it is sent.

A REST call has all four: the caller waits for the callee, knows its URL, depends on its response shape and on what the response means. Replacing it with an event published to Kafka changes some of these and not others.

2What Events Remove

Temporal and availability coupling goes away. The order service publishes OrderPlaced and moves on; it does not wait for the email, loyalty or analytics services. If the loyalty service is down for an hour, orders keep flowing, and loyalty catches up from its committed offset when it returns. With REST, the order service would have to retry, queue or fail.

Location coupling goes away too. The order service publishes to a topic and does not know who reads it. A new fraud service can subscribe tomorrow without any change to the order service. This is the strongest benefit of events: adding a consumer is free for the producer.

Kinds of coupling, REST against events
CouplingRESTKafka events
Temporal and availabilityCaller waits, fails if downRemoved
LocationCaller knows the URLRemoved
SchemaResponse shapeRemains: event shape
SemanticMeaning of the responseRemains: meaning and timing
Ordering and keysNot an issueNew assumptions
Visibility of dependantsCallers are knownHidden

3What Remains: Schema and Semantics

Every consumer of OrderPlaced depends on its fields. If the order service renames totalAmount to total, every consumer that reads totalAmount breaks, exactly as a REST client would. A schema registry with compatibility checks helps, by refusing incompatible changes, but the coupling is still there; the registry only makes it explicit.

Semantic coupling is subtler. Consumers depend on what the event implies and when it is sent. Suppose OrderPlaced used to be published after payment succeeded, and a refactoring now publishes it before payment. The schema is unchanged, every compatibility check passes, and the warehouse starts packing unpaid orders. Consumers also depend on keys and ordering: if events for one order share a key, they arrive in order on one partition; change the key, and a consumer that assumed OrderPlaced before OrderCancelled may see them reversed.

4What Gets Hidden

With REST, a service can at least see who calls it, in access logs and in traffic. With events, the producer has no direct view of its consumers. A topic may have twelve consumer groups, some owned by teams the producer has never heard of, and a harmless-looking change can break them silently, often discovered days later because nothing failed loudly.

So events increase the need for ownership and documentation. Every topic needs an owning team, a schema with compatibility rules, and a catalogue that lists its known consumers, built from consumer group names and ACLs rather than from memory. Changes to public events need the same care as changes to a public API.

5The New Problems the Team Takes On

Eventual consistency becomes visible. The customer places an order, the order page shows it, but the loyalty points appear a few seconds later. Designers must decide what the user sees in between.

Duplicates and out-of-order delivery become normal. With at-least-once delivery, a consumer may see the same event twice after a rebalance, so handlers must be idempotent, for example by recording processed event ids. Events with different keys may arrive in any order.

Debugging gets harder. A flow that was one call chain becomes several asynchronous hops through topics. Without trace context propagated in record headers and correlation ids, answering why did this customer not get their points means reading logs across five services and their lag graphs.

And not everything should be an event. Events fit facts that many parties react to: an order was placed, a payment failed. A query that needs an answer now, such as what is this customer's credit limit, is still better as a synchronous call, because turning it into request and reply events keeps the waiting and adds hops.

6Follow-up questions

Does a schema registry remove schema coupling?

No. It makes the coupling safe by refusing changes that would break consumers under the chosen compatibility mode, such as BACKWARD. Consumers still depend on the fields; the registry only enforces the contract.

How do you find out who consumes a topic?

List consumer groups that have committed offsets on it, read the ACLs that grant read access, and map client ids to teams. Requiring each consumer to register in a catalogue before getting an ACL keeps that list accurate over time.

What is the difference between an event and a command on Kafka?

An event states a fact that already happened, such as OrderPlaced, and the producer does not care who reacts. A command asks a specific service to do something, such as ReserveStock, and the sender expects it to happen. Commands keep more coupling and usually have exactly one consumer.

7Conclusion

In this answer, we split coupling into kinds and saw that Kafka events remove temporal, availability and location coupling, which lets producers keep working and lets new consumers join for free. Schema and semantic coupling remain, along with new assumptions about keys and ordering, and the dependency on a producer becomes hidden, so ownership and a consumer catalogue matter more. The team also takes on visible eventual consistency, duplicates, out-of-order delivery and harder debugging, and should keep synchronous calls for queries that need an answer now.

What to say in the interviewAbout 80 seconds aloud

Open with

I would say events remove some coupling, not all of it. They remove temporal and availability coupling: the producer publishes and moves on, and if a consumer is down it catches up later from its offset.

Then, if they want more

They remove location coupling: the producer does not know who consumes, so adding a new consumer costs it nothing.

But schema coupling remains, because consumers depend on field names and types, and semantic coupling remains, because they depend on what an event means and when it is sent; if OrderPlaced moves from after payment to before payment, nothing fails a schema check but the warehouse may ship unpaid orders. Consumers also assume things about keys and ordering.

On top of that, coupling becomes hidden: a producer cannot see who depends on its events, so a harmless-looking change can break unknown consumers, which means ownership, schemas with compatibility checks and a catalogue of consumers matter more than with REST.

The team also takes on new problems: eventual consistency that users can see, duplicates and out-of-order delivery that handlers must cope with, and flows that are harder to trace across asynchronous hops. So I would use events for facts that many services react to, and keep synchronous calls for queries that need an answer right now.

About this answer

Last updated
13 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
Apache Kafka documentation
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 "Explain which kinds of coupling events remove, which remain, and which new problems the...": https://scrivio-interview-library.netlify.app/spring-boot/kafka-design/c16e5fa8e1/