rabbitmq/rabbitmq-auth-backend-http

Continuous Reconnects to the REST service

sarelr123 opened this issue · 2 comments

I am in the process of changing over from Mosquitto to the Rabbit and have MQTT over web-sockets and also using the rabbit_auth_backend_http plugin. I now have it all running successfully on a dev environment but one thing that I have noticed is that there are constantly re-authentication calls coming in on for the same user: [{user_path, "http://www.domainname/rmq_auth.php"}. These calls are about
2 calls every 1 or 2 seconds where on Mosquitto it did it once when a connection was established.

My question is: Is this the intended behavior to frequently re-authenticate all connected users as you can see that this will require more resources as more concurrent connections are made?

Please post questions to rabbitmq-users or Stack Overflow. RabbitMQ uses GitHub issues for specific actionable items engineers can work on, not questions. Thank you.

This is expected. We have an experimental plugin that caches all authn/authz backend requests: https://github.com/rabbitmq/rabbitmq-auth-backend-cache.