Do we have any Python client that implements support for STOMP 1.1 and auto failover?

I need to use some Python STOMP client to talk to my ActiveMQ server using the stomp protocol. I searched for some Python STOMP client libraries and found some of them, but they only implement STOMP 1.0. However, I need some STOMP 1.1 protocol features, such as Heartbeat support, so I am looking for Python STOMP 1.1 client libraries. Do we have any Python STOMP 1.1 client libraries?

Also, is there any Python client library that supports crash recovery?

[UPDATE] It looks like stomppy supports STOMP 1.1, but I still have not received any client that supports automatic switching to another resource.

+4
source share
2 answers

It looks a little more complicated than I expected, and there are reasons why it would be impossible to come with the STOMP library with an automatic transition to another resource. For example, if the STOMP application uses transactions, etc., it would be quite difficult to maintain state in the STOMP library and repeat transactions with the new broker after a failure.

Thus, most libraries (even stomp.py) provide fault tolerance support only when connecting to brokers for the first time. Later, the application should take care of the failure.

I have successfully implemented this in my application for our purposes.

0
source

I just released stompest 2.1 , which supports broker switching (not only with the initial connection, with the ability to re-subscribe to the subscription when reconnecting) and comes with a full-featured implementation of the STOMP 1.0, 1.1, and 1.2 protocols, including support for heart rate and unicode.

+3
source

Source: https://habr.com/ru/post/1395000/


All Articles