Quick revision
The short answer
We evaluate it per workload against concrete requirements, not as a platform preference. We list what our job queues actually need, such as per-message acknowledgement, delayed retries, dead-lettering, priorities, scheduling and scaling beyond partitions, and check which of these share groups cover today. We weigh the benefits of one platform, retention and replay against the risks of a young feature, uneven client support and missing queue features, run a pilot on a few non-critical job types with clear measurements, and then migrate workload classes one by one while keeping the existing queues where they work well.
What to remember
In this answer, we evaluated moving job queues to Kafka share groups by starting from the actual needs of each queue, mapping them to what share groups provide, and noting the gaps in delays, priorities, scheduling and automatic dead-lettering. We weighed one platform, retention and replay against feature maturity, client support and operational experience, ran a pilot with exit criteria, and planned a migration by workload class that keeps the existing queues where they serve well.
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.
We evaluate it per workload against concrete requirements, not as a platform preference. We list what our job queues actually need, such as per-message acknowledgement, delayed retries, dead-lettering, priorities, scheduling and scaling beyond partitions, and check which of these share groups cover today. We weigh the benefits of one platform, retention and replay against the risks of a young feature, uneven client support and missing queue features, run a pilot on a few non-critical job types with clear measurements, and then migrate workload classes one by one while keeping the existing queues where they work well.
Why this question is asked
Consolidation proposals are attractive because two messaging systems cost twice the operations, skills and security reviews. But job queues are where teams depend on many small features they rarely think about until they are missing, such as delaying a retry by five minutes. Interviewers ask this at senior level to see whether we can turn an enthusiastic proposal into a measured decision with evidence. In this answer, we will build the requirements list, compare it with what share groups offer, look at benefits and risks honestly, design a pilot with exit criteria, and plan a gradual migration.
1Start From What the Job Queues Actually Do
Before comparing technologies, we inventory the current queues. For each queue we write down the message rate, job duration, how failures are retried and with what delay, whether dead-lettered messages are inspected and replayed, whether some jobs have priority, whether messages are scheduled for a future time, and how many consumers run at peak. Often this inventory alone is revealing: perhaps 40 queues, of which 30 are simple fire-and-forget jobs, 6 rely on delayed retries, 3 use priorities and 1 uses scheduled delivery.
Notice that we are describing needs, not RabbitMQ or SQS features. A need such as retry after one minute can be met in several ways, while a feature name pushes us to copy the old system.
2Matching Requirements to Share Groups
With the inventory, we compare each need with what share groups give us. Share groups cover per-message acknowledgement through accept, release and reject, redelivery after a lock timeout, a delivery count limit, and many consumers per partition. They do not, at least in their first releases, give per-message delays, priorities or scheduled delivery, and the broker does not move failed records to a dead-letter topic for us; check the current Kafka version, since this area is moving.
| Need | Share groups | Note |
|---|---|---|
| Per-message acknowledgement | yes: accept, release, reject | core of KIP-932 |
| Scale beyond partitions | yes | many consumers per partition |
| Redelivery on crash | yes, lock timeout | handlers must be idempotent |
| Poison message limit | yes, delivery count | no automatic dead-letter topic |
| Delayed retry | not built in | retry topics per delay, by hand |
| Priorities | not built in | separate topics |
| Scheduled delivery | not built in | keep elsewhere or build a scheduler |
So the comparison already splits the workloads. Simple jobs map cleanly. Jobs that need delays or priorities would need extra machinery, such as separate retry topics per delay or one topic per priority, which brings back the complexity consolidation was meant to remove.
3Benefits and Risks, Honestly Weighed
The benefits are real. One platform means one set of brokers to run, one security model, one monitoring stack and one skill set. Kafka's retention means a job topic can be replayed after a bug, which a classic queue cannot do once messages are acknowledged. Existing tooling, schema registry, ACLs and connectors, all apply to job topics too.
The risks are equally concrete. The feature is young: it was early access in Kafka 4.0 and preview in 4.1, and its behaviour under failover and heavy redelivery has less field experience than RabbitMQ or SQS. Client support differs by language, so a Python or Node service might not have a mature share consumer yet. Missing features have to be rebuilt. And the team's operational experience with share groups, such as tuning lock durations, reading their metrics and diagnosing stuck records, starts at zero. A migration that saves one system but adds three home-grown workarounds is not a saving.
4Running a Pilot With Exit Criteria
We pick two or three job types that are non-critical, simple and representative, for example thumbnail generation and report emails, and run them on share groups in parallel with, or in place of, the old queue. Before starting, we write down what we measure and what result counts as success: throughput at peak, say 500 jobs per second; redelivery behaviour when we kill consumers; duplicate rate; p99 time from enqueue to start; and the hours of operational effort per month. We also run failure drills such as a broker restart during peak load.
- Inventory queues and needsrate, duration, retries, delays, priority
- Needs delays, priorities or scheduling?YesKeep on the queue system for nowNoCandidate for share groups
- Pilot on non-critical jobsmeasure throughput, redelivery, effort
- Pilot meets exit criteria?YesMigrate this workload classNoStop and record why
- Review next classrepeat with what we learned
5 steps in order. Play them, or step through them one at a time.
5Migrating Gradually, Not in One Move
If the pilot succeeds, we migrate by workload class: first the simple fire-and-forget jobs, then perhaps jobs whose retry needs can be met with a small number of retry topics. Each class has a rollback path, which is easy because the old queue still runs. Classes that need priorities or scheduling stay on RabbitMQ or SQS until the feature set changes, and that is a perfectly good outcome. The aim is fewer systems where that reduces cost and risk, not zero systems at any price. We revisit the remaining queues when new Kafka releases change the comparison.
6Follow-up questions
What would make you stop the migration?
Clear evidence against the exit criteria. Examples are duplicate or lost jobs in failure drills beyond what idempotent handlers can absorb, redelivery storms after broker restarts, a language team with no supported share consumer client, or operational effort that exceeds what we save by retiring the old system. I would also stop if the workarounds for delays and priorities grow into a custom queue implementation that only our team understands. Stopping is not failure; we keep what worked and record why the rest stays.
Why not move everything at once to get the savings sooner?
Because the savings only arrive when the old system is fully retired, and a big-bang move puts every job type at risk at the same moment with a young feature. A gradual move gives real data after the first class and lets us stop cheaply.
7Conclusion
In this answer, we evaluated moving job queues to Kafka share groups by starting from the actual needs of each queue, mapping them to what share groups provide, and noting the gaps in delays, priorities, scheduling and automatic dead-lettering. We weighed one platform, retention and replay against feature maturity, client support and operational experience, ran a pilot with exit criteria, and planned a migration by workload class that keeps the existing queues where they serve well.
Open with
I would treat it as a per-workload decision, not a platform vote. First I would inventory our job queues: rates, job durations, how retries work and with what delays, whether we use dead-letter queues, priorities or scheduled messages, and how many consumers we scale to.
Then, if they want more
Then I compare those needs with share groups. They give per-message acknowledgement with accept, release and reject, redelivery after a lock timeout, a delivery count limit, and consumers beyond the partition count. In the early releases they do not give delayed messages, priorities or scheduled delivery, and dead-lettering is not a separate topic.
The benefits are real: one platform, one security model, retention and replay, and existing tooling. The risks are also real: it was early access in Kafka 4.0 and preview in 4.1, client support differs by language, and our team has no operating experience with it.
So I would run a pilot on a few non-critical job types, with exit criteria written in advance: throughput, redelivery and duplicates in failure drills, latency, and operational effort. If it passes, I migrate class by class, starting with simple jobs, with a rollback path, and I keep RabbitMQ or SQS for workloads that need features share groups lack. I would stop if the workarounds start becoming our own queue system.
About this answer
- Last updated
- 12 November 2026
- Versions it names
- Kafka 4.0
- 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, Spring for Apache Kafka reference
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 "Your company runs both Kafka and a separate queue system (RabbitMQ or SQS) for...": https://scrivio-interview-library.netlify.app/spring-boot/kafka/56ec48b8e8/