rabbitmq / rabbitmq-auth-backend-http

HTTP-based authorisation and authentication for RabbitMQ
Other
199 stars 72 forks source link

Write permission on exchange asked for every message for slow publishers #27

Closed gfoiani closed 8 years ago

gfoiani commented 8 years ago

Hi,

I'm making some publishing tests with different clients such as amqplib (JS) and Bunny (Ruby). I noticed that when I publish messages slower than 1 message per second an HTTP request for write permission on the exchange to which I'm connected is made for every single message. Otherwise, if I publish faster than 1 message per second the HTTP request for write permission is made only for the first message. Does Rabbitmq caches the results of access control checks? If yes can I configure the cache timeout in order to avoid this check for every message?

Thanks

michaelklishin commented 8 years ago

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.