I have a question about stream. plz help me #11640
-
I'm not sure which of the two code examples above is the correct approach for streaming. Could you please explain? What are the differences between them? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It is possible to interact with RabbitMQ streams with the protocols that RabbitMQ supports. The preferred protocol is the stream protocol, because it is optimized for streams and all features are available with it. The second example in your question uses the stream protocol. The first example uses the AMQP 091 protocol. You should use the stream protocol if you don't have restrictions on the protocol or the client library in your system. See also this comparison page. |
Beta Was this translation helpful? Give feedback.
It is possible to interact with RabbitMQ streams with the protocols that RabbitMQ supports. The preferred protocol is the stream protocol, because it is optimized for streams and all features are available with it. The second example in your question uses the stream protocol. The first example uses the AMQP 091 protocol.
You should use the stream protocol if you don't have restrictions on the protocol or the client library in your system.
See also this comparison page.