RabbitMQ stream queues. What you should know.

RabbitMQ stream queues. What you should know.

Okay, we headed to RabbitMQ stream queues. They are fast with low latency and have many interesting features.

But let's see what you should know about stream queues before starting:

  • 👉🏼 Stream queue is an append-only log. Messages are appended to the log file and never deleted, which differs from AMQP (FIFO) queues.
  • 🔌 The retention policy deletes the segments based on size or time.
  • 🕞 Messages can be consumed more than once, starting from an offset number or date-time.
  • ✅ It is possible to use stream queues with the AMQP 0.9.1 protocol ( the most popular) and so clients.
  • 👉🏼 It is possible to use stream queues using AMQP 1.0 protocol and clients.
  • 🔌 With the stream plugin, it is possible to use a new set of clients. Clients implement the RabbitMQ stream protocol.

Wait, wait, wait, I can use the stream queues with different clients and different protocols! 😱?!?!

Yes, you can!

Here you can find the difference between the AMQP and Stream clients. 🚨 Please read the interoperability section.

With AMQP* protocols, you can use most stream features. With the Stream protocol, you can use all the stream features like Super-Stream, sub-batch, compressed sub-batch and high throughput. So it is up to you to decide the best protocol suite for your use case.    

Conclusion

I hope you understand better how streams work. I leave you some links that can be helpful to:

Need help? Check https://www.rabbitmq.com/contact#consulting for community and commercial support.

Speak Italian? Here is a Telegram channel.

Happy RabbitMQ messaging! 🎉



   


To view or add a comment, sign in

Others also viewed

Explore topics