Skip to content

emqx-web-hook is blocking message being received by subscribers #207

@daadu

Description

@daadu

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

  1. trigger webhook after messages are routed to all subscribers.
  2. fire-and-forget (async) webhook should be trigger (I posted regarding this in Confusion regarding emqx-rule-engine #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?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions