You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it should be reasonably straight-forward to add the ability to specify amqp: as the start of a broker URL, and then have the wmo_mesh demo work with amqp brokers similarly to how it works with mqtt ones. The main changes:
need to declare the exchange one is publishing (--post_exchange) to (equivalent to the root of the topic tree.) It needs to have certain properties... durable=true, etc... I would copy whatever Sarracenia does by default, as it is the result of years of tuning.
need to declare the queue_name, one can use the mqtt 'client_id' as the queue name...
--clean_session in wmo_mesh means essentially deleting the queue and exchange, and then re-creating them. This will clear out all old bindings.
Bindings are stateful in AMQP, and hard to maintain because the protocol allows no means of inspecting them, so the only option for now is the sledgehammer of delete/recreat.
Probably want to add a --exchange option, as the exchange one is subscribing to is currently not settable, and they can be different in practice.
The text was updated successfully, but these errors were encountered:
About 0-9-1 ... it says amqp-0-9-1 because I'm expecting people to use python3-amqp package, same as the latest Sarracenia... I guess people could use python3-pika as well. We have not had success with pika... although others have.
The other reason it says 0-9-1, is that one cannot do pub-sub with later versions of AMQP, one cannot declare exchanges, queues, or bindings. so and AMQP 1.0 wmo_mesh client just isn't possible.
There is now an amqp subdirrectory, but all it does is include instructions for how to use Sarracenia to implement the mesh. The actual scripts do not support AMQP, and remain an MQTT only demonstration. This issue is about adding AMQP to the scripts themselves.
it should be reasonably straight-forward to add the ability to specify amqp: as the start of a broker URL, and then have the wmo_mesh demo work with amqp brokers similarly to how it works with mqtt ones. The main changes:
need to declare the exchange one is publishing (--post_exchange) to (equivalent to the root of the topic tree.) It needs to have certain properties... durable=true, etc... I would copy whatever Sarracenia does by default, as it is the result of years of tuning.
need to declare the queue_name, one can use the mqtt 'client_id' as the queue name...
--clean_session in wmo_mesh means essentially deleting the queue and exchange, and then re-creating them. This will clear out all old bindings.
Bindings are stateful in AMQP, and hard to maintain because the protocol allows no means of inspecting them, so the only option for now is the sledgehammer of delete/recreat.
Probably want to add a --exchange option, as the exchange one is subscribing to is currently not settable, and they can be different in practice.
The text was updated successfully, but these errors were encountered: