Prompt
I want to move from RabbitMQ to a streaming platform, what should I think about?
Latest observation
Moving from RabbitMQ to a streaming platform is usually less about “replacing a broker” and more about changing how your applications communicate and how you think about data flow.
Here are the main things to think about:
1) Messaging vs streaming: what problem are you solving?
RabbitMQ is great for:
- task queues
- command/event delivery
- request/response
- work distribution
- low-latency message routing
A streaming platform like Kafka, Pulsar, or Redpanda is better when you need:
- durable event history
- replayability
- multiple independent consumers
- high-throughput event ingestion
- data pipelines and analytics integration
Ask:
- Do you need messages to be consumed once, or many times?
- Do you need to replay old events?
- Do consumers need to process at their own pace?
- Are you moving toward event-driven architecture or data streaming?
2) Delivery semantics
RabbitMQ often fits “process this message” workflows, while streaming systems are usually designed around:
- at-least-once delivery by default
- possible duplicates
- consumer offset tracking
- replay from a point in time
You should plan for:
- idempotent consumers
- deduplication where needed
- exactly-once only if you truly need it and understand the cost/limits
3) Ordering guarantees
With RabbitMQ, ordering is often tied to queue behavior and consumer setup.
With streaming platforms:
- ordering is typically guaranteed within a partition
- global ordering is usually not practical at scale
You need to decide:
- what key defines ordering?
- can related events be partitioned consistently?
- what happens if events for the same entity are split across partitions?
4) Message model and topic design
Streaming platforms usually push you toward a topic + partition + key model instead of queue-centric design.
Think about:
- topic naming conventions
- partition keys
- retention periods
- whether topics are per domain/event type/service
- whether you should model events as immutable facts
A good rule:
- use domain events rather than “job messages” where possible
5) Retention and storage
RabbitMQ is usually about short-lived delivery.
Streaming platforms store data for a configurable retention window or forever.
Decide:
- how long should data be kept?
- is the stream your system of record?
- do you want consumers to rebuild state from history?
- do you need tiered storage or archival?
6) Consumer behavior and scaling
In RabbitMQ, scaling often means more consumers competing on a queue.
In streaming systems:
- consumers often belong to a consumer group
- each partition is assigned to one consumer in a group
- scaling is tied to partition count
You should think about:
- expected throughput
- partition count up front
- consumer lag monitoring
- how to handle rebalances
7) Backpressure and slow consumers
Streaming systems are often better at handling slow consumers because data is retained.
But you still need to handle:
- consumer lag growth
- poison messages
- retry strategies
- dead-letter handling
- offset commit timing
8) Error handling and retries
RabbitMQ patterns like requeueing or DLQs don’t map exactly the same way.
In streaming:
- retries are often implemented in the consumer or via retry topics
- dead-letter topics are common
- you need a strategy for poison pills and bad schema data
Questions to ask:
- how many retries?
- with what delay/backoff?
- where do failed events go?
- can you safely reprocess them later?
9) Schema evolution
This becomes much more important in streaming.
Because data may be replayed months later, you need:
- versioned schemas
- compatibility rules
- serialization standards like Avro, Protobuf, or JSON Schema
- schema registry or equivalent governance
Think about:
- how you add fields
- how you deprecate fields
- how consumers handle unknown/missing fields
10) Operational complexity
Streaming platforms can be more operationally demanding than RabbitMQ.
Consider:
- cluster sizing
- partition management
- replication
- disk usage
- retention policies
- rebalance behavior
- monitoring consumer lag and broker health
- upgrades and disaster recovery
If you use a managed service, some of this gets easier, but not all.
11) Cost model
Streaming can be cheaper or more expensive depending on usage.
Costs are driven by:
- storage retention
- throughput
- replication factor
- network traffic
- number of partitions
- consumer lag
- managed service pricing
Also consider hidden costs:
- refactoring applications
- observability
- operational skills
- schema governance
12) Migration strategy
Don’t do a big-bang cutover unless you have to.
Safer approach:
- Identify a single use case
- Define event contracts carefully
- Dual-write or bridge from RabbitMQ to the stream temporarily
- Migrate consumers one by one
- Validate behavior under load
- Decommission old paths gradually
Useful patterns:
- RabbitMQ as ingress, streaming platform as backbone
- event relay/bridge
- consumer shadowing for validation
- parallel runs with comparison
13) Choose the right platform
Not all streaming platforms are the same.
Examples:
- Kafka / Redpanda: ecosystem, durability, analytics integration, wide adoption
- Pulsar: multi-tenancy, storage/compute separation, geo-replication options
- NATS JetStream: simpler pub/sub + persistence, lower operational overhead in some cases
Choose based on:
- throughput
- operational simplicity
- multi-tenancy
- replay requirements
- ecosystem/tooling
- managed availability in your cloud
14) When not to move
A streaming platform may be overkill if:
- you mainly need transient work queues
- your messages are tiny and short-lived
- you don’t need replay
- you don’t want to redesign consumers around offsets and partitions
- your workload is small and RabbitMQ already fits well
A practical checklist
Before migrating, answer:
- Do we need replay?
- Do we need multiple independent consumers?
- What are our ordering requirements?
- What retention do we need?
- Can consumers be idempotent?
- What is our schema evolution strategy?
- How will we handle retries and DLQs?
- How many partitions do we need?
- What is our migration plan?
- Is the team ready to operate this?
If you want, I can also give you:
- a RabbitMQ vs Kafka/Pulsar comparison table, or
- a migration decision framework for your specific use case.