Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQTT notification: retry failing notifications in the CB->MQTT broker segment #4439

Open
fgalan opened this issue Oct 19, 2023 · 0 comments
Open

Comments

@fgalan
Copy link
Member

fgalan commented Oct 19, 2023

Is your feature request related to a problem / use case? Please describe.

MQTT notification delivery reliability

Describe the solution you'd like

MQTT notifications follow this schema:

CB -(1)-> MQTT broker -(2)-> subscribed clients

while we can have delivery reliability at (2) using MQTT QoS 2, currently the (1) segment is somehow "weak". If the notifcation publish message fails, CB doesn't retries it.

Thus, a CB->MQTT retry mechanism could be implemented. It could be based in some subscription configuration (e.g. notification.mqtt[Custom].retries).

Describe alternatives you've considered

None

Describe why you need this feature

  • To improve or simplify an scenario.

Additional information

It should be easy to accomplish if the MQTT libreary we are using provides some kind on callback handler. If the callback is called with a "error" status, then retry until the desired limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant