Quick revision
The short answer
I would not approve RSocket as a blanket replacement. RSocket gives fast point-to-point streams with backpressure, but it is not a durable log: when a consumer is down, the messages sent meanwhile are gone, while Kafka keeps them, lets new consumers replay history and decouples producers from consumers. A sound outcome is to keep Kafka for event distribution, replace REST polling with RSocket or gRPC streaming only where a live, low-latency stream with backpressure is really needed, and weigh the ecosystem and long-term support risk of a less common protocol before committing.
What to remember
In this answer, we evaluated replacing Kafka and REST polling with RSocket across 20 services. We saw that RSocket gives low-latency point-to-point streams with backpressure but is not durable, so messages are lost while consumers are down, while Kafka provides durability, replay and decoupled consumers. We weighed ecosystem maturity, tooling, language support, operational skills and long-term support risk, and concluded that Kafka should stay for event distribution, with RSocket or gRPC streaming used only for live, low-latency streams that justify it after a proof of concept.
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.
I would not approve RSocket as a blanket replacement. RSocket gives fast point-to-point streams with backpressure, but it is not a durable log: when a consumer is down, the messages sent meanwhile are gone, while Kafka keeps them, lets new consumers replay history and decouples producers from consumers. A sound outcome is to keep Kafka for event distribution, replace REST polling with RSocket or gRPC streaming only where a live, low-latency stream with backpressure is really needed, and weigh the ecosystem and long-term support risk of a less common protocol before committing.
Why this question is asked
Architecture proposals that replace several technologies with one are common, and they are attractive because one tool sounds simpler than three. Interviewers ask this question to see whether we compare technologies by their guarantees rather than by their features, and whether we think about the people who will run the system in five years. In this answer, we will recap what the three options actually promise, look at what changes in delivery guarantees if Kafka goes away, assess ecosystem and operational risk, and end with a decision and how we would check it.
1A Quick Recap of What Each Option Promises
Kafka is a durable, replicated log. A producer appends events to a topic, the brokers store them on disk for a retention period such as seven days, and each consumer group reads at its own pace, tracking its position with an offset. Producers do not know who consumes, and a consumer that is down for an hour simply continues from its offset when it comes back.
REST polling means a service asks another every few seconds whether anything changed. It is simple and every tool understands it, but it wastes requests when nothing changes and adds up to a full polling interval of delay when something does.
RSocket is a binary protocol for streams between two connected parties, with backpressure, which means the receiver controls how fast the sender may send. It is excellent for a live conversation between two processes. But the stream exists only while the connection does; nothing is stored in between.
| Property | Kafka topics | REST polling | RSocket streams |
|---|---|---|---|
| Messages survive a consumer outage | yes, until retention ends | state is re-read on next poll | no, lost while disconnected |
| Replay history | yes, reset the offset | no | no |
| Producer knows consumers | no | consumer calls producer | yes, point-to-point |
| Latency | tens of milliseconds | up to the poll interval | low, a few milliseconds |
| Backpressure | consumer pulls at its own pace | implicit | built into the protocol |
| Tooling and skills | very common | universal | limited |
2What Changes If Kafka Goes Away
The most important question is not speed but delivery guarantees. Suppose the order service publishes OrderPlaced and four services consume it: billing, shipping, email and analytics. With Kafka, if shipping is being deployed for three minutes, it reads those three minutes of orders when it starts again. With RSocket, the order service streams to shipping over a connection; when shipping restarts, the connection drops, and orders sent in those three minutes are lost unless the order service buffers them, retries, and remembers what each consumer has acknowledged.
Building that buffering into every producer means re-implementing a small, unreliable message broker 20 times. The order service would also need to know all four consumers and keep a connection to each, so adding a fifth consumer, say fraud detection, becomes a change to the producer instead of a new consumer group. And replay, which teams use to rebuild a read model or fix a bug in a consumer, disappears entirely.
So replacing Kafka with RSocket is not a protocol swap. It changes the system from durable, decoupled publish-subscribe to fragile point-to-point calls, and each of the 20 services would have to absorb that change.
3Assessing Ecosystem and Operational Risk
Next we check how mature the surrounding ecosystem is, because a protocol is only as good as the tools around it. Questions worth asking include whether our load balancers and service mesh can route and balance RSocket connections, whether our tracing and metrics tools understand its frames, whether every language used by the 20 services has a maintained client, and how active the project and its community are compared with gRPC streaming and WebSocket. gRPC streaming, for example, runs over HTTP/2, has generated clients in most languages and is understood by common meshes and proxies.
Then we look at people. How many engineers know RSocket today, how will on-call engineers debug a stuck stream at 3 a.m., and who will maintain the integration if the two enthusiasts on the team leave? A less common protocol carries a long-term support risk: if the library or Spring's support for it slows down, we may face a forced migration of 20 services. We should check the current support status in the Spring Boot and Spring Framework versions we use as part of the evaluation.
4Where RSocket or gRPC Streaming Does Fit
The proposal is not wrong everywhere. REST polling is genuinely wasteful in some places, for example a dashboard service polling a pricing service every second for 2,000 instruments, or a pricing engine that must push updates to a gateway with under 10 milliseconds of delay. For live, low-latency streams where the consumer is online and a lost update is replaced by the next one, a streaming protocol with backpressure is better than polling.
For those cases we can compare RSocket with gRPC streaming on equal terms, run a small proof of concept with realistic load, and pick one. Many organisations choose gRPC there because of its tooling, but RSocket is defensible when its symmetric connections or explicit demand are useful.
- Must messages survive consumer downtime?YesKafka topicNoNext question
- Several independent consumers or replay needed?YesKafka topicNoNext question
- Live stream, low latency, consumer online?YesgRPC streaming or RSocketNoPlain REST request
3 steps in order. Play them, or step through them one at a time.
Applied per integration, not once for all 20 services.
5Reaching a Decision
My recommendation would be: keep Kafka for event distribution between services, keep REST for simple request and response calls, and allow a streaming protocol only for integrations that pass the questions above, chosen after a proof of concept. I would ask the team to list every current Kafka topic and polling call, classify each one with that flow, and estimate the benefit, for instance how much latency or how many requests per second each replacement saves.
If after that a handful of integrations would benefit, we run RSocket or gRPC on one of them in production for a quarter, measure latency, failure behaviour and the support effort, and only then write a standard. This keeps the good part of the idea, faster live streams, without giving up durability that the business depends on.
6Follow-up questions
Could we get durability with RSocket by adding resumption?
RSocket resumption lets a client reconnect and continue streams after a short network drop, but the frames are held in memory by the other side for a limited time. It does not survive a process restart or a long outage, does not store history for new consumers and does not replay. It reduces some losses; it does not replace a durable log.
Is Kafka too slow for live streams?
Kafka's end-to-end latency is often in the tens of milliseconds, which is enough for most event processing. It becomes a poor fit when we need single-digit millisecond pushes to a specific connected client, or flow control between one producer and one consumer, which is where a streaming protocol helps.
How would you handle the team's disappointment?
By taking the problem they found seriously. They are right that polling wastes resources and adds delay; we just disagree on the scope of the fix. Giving them the proof of concept and the selection criteria turns the decision into shared work rather than a rejection.
7Conclusion
In this answer, we evaluated replacing Kafka and REST polling with RSocket across 20 services. We saw that RSocket gives low-latency point-to-point streams with backpressure but is not durable, so messages are lost while consumers are down, while Kafka provides durability, replay and decoupled consumers. We weighed ecosystem maturity, tooling, language support, operational skills and long-term support risk, and concluded that Kafka should stay for event distribution, with RSocket or gRPC streaming used only for live, low-latency streams that justify it after a proof of concept.
Open with
I would first separate the two parts of the proposal, because they solve different problems. Replacing REST polling with streaming can be a real improvement where we need live, low-latency updates.
Then, if they want more
Replacing Kafka is a different matter. Kafka is a durable log: if shipping is down for three minutes, it reads those orders when it comes back, new consumers can join without changing the producer, and we can replay history to rebuild a read model.
RSocket is point-to-point streaming with backpressure, and nothing is stored in between, so if a consumer is down the messages are simply lost unless every producer builds its own buffering and acknowledgement, which means writing a fragile broker 20 times.
Then I would check ecosystem maturity: load balancer and mesh support, tracing, clients for every language we use, community activity, and how it compares with gRPC streaming and WebSocket. And I would think about the people who will run it, because a less common protocol is a long-term support risk.
My recommendation would be to keep Kafka for events, keep REST for simple calls, and allow RSocket or gRPC streaming only for integrations that truly need a live stream, after a proof of concept on one of them with measured results.
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, Spring Web MVC
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 "A team proposes RSocket for all streaming between 20 internal services, replacing Kafka...": https://scrivio-interview-library.netlify.app/spring-boot/web-other/c48dae040e/