emqx-web-hook
emqx-web-hook copied to clipboard
emqx-web-hook is blocking message being received by subscribers
Setup
version: 4.1.0 environment: k8s (installed with Helm) mqtt: v3.1
Problem
The web-hook call made by emqx
seems like a blocking call for subscribers from receiving "that" message. Until the web hook is processed the messages are not received by subscriber. This causes an issue particularly when the webserver receiving a webhook is also (temporarily) subscribing to a particular topic (in my case to perform request-response pattern messages when a certain message is received via webhook).
Possible Solution
- trigger webhook after messages are routed to all subscribers.
- fire-and-forget (async) webhook should be trigger (I posted regarding this in #196)
Remarks
If 4.2.0 is not happening soon then solution suggested in point 1 should be quickly implemented as a work around. Also will this issue also be raised when using emx-rule-engine
instead of emqx-web-hook
?
Any updates on this?
We are running 4.2.6 and having still this problem
@hmonadjem can you use message queue to process webhook message , so that it won't block the whole process ?
@hmonadjem can you use message queue to process webhook message , so that it won't block the whole process ?
Already tried it, used "celery" for it, it causes hick-ups when doing request-response kind of a thing on the HTTP server.
Hi, guys, This has really been a problem with the web-hook plugin.
We will put this on the agenda in anticipation of a good solution. Thank you very much for your suggestions and concerns!
Have you guys tested the approximate throughput and TPS that can be supported by the current version?
Thank you! The Throughput was never a problem for us (we have about 20 msg/s) but it is a problem when the target http server is booting up or shutting down or is unreachable. That basically blocks every message for 5s (timeout) and after that if the response is 500 the mqtt message is never delivered. Which is very bad for us.
Is there any progress on this? I'm running on the same issue.
I hope this gets resolved, because it's really bad, where message_publish and message_delivered don't work as they should.
Hello, Is there any progress on this?