bloomberg / amqpprox

An AMQP 0.9.1 proxy server, designed for use in front of an AMQP 0.9.1 compliant message queue broker such as RabbitMQ.
Apache License 2.0
78 stars 16 forks source link

Configuration persistence #58

Closed micdenny closed 3 years ago

micdenny commented 3 years ago

Does amqpprox support configuration persistence and save the configuration on file?

How it survives a server reboot or fail? Do you script the configuration as amqpprox_ctl commands and submit on each reboot?

Probably is connected to #57

adamncasey commented 3 years ago

Does amqpprox support configuration persistence and save the configuration on file?

No, amqpprox only receives commands from amqpprox_ctl. Synchronising static file config & dynamic config commands can be awkward, this approach means amqpprox only needs to understand how to read config from one source.

Do you script the configuration as amqpprox_ctl commands and submit on each reboot?

Yeah - when the server comes up it's another application above amqpprox which actually starts amqpprox & submits the configuration commands. If amqpprox fails the parent application will also exit, which then kicks our process supervisor into gear & brings everything back up again as before.

Thanks again for your input - interested to hear how you get on with this down the line

micdenny commented 3 years ago

I was expecting something like this, but I've asked to be sure I didn't miss some part of amqpprox 😄

I think I'm good with the reply and I'm going to close the issue because it's by-design.

Thank you very much.