Skip to content

Are Kuzzle subscriptions/notifications persistent ? #2406

Answered by Aschen
yhilem asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @yhilem

Kuzzle notification system is not designed to be persistent by itself. The MQTT protocol is simply used as a transport layer for realtime notification.

There is no persistence option for Aedes because when a client disconnect from Kuzzle, his subscription are also destroyed.

So to answer your question, when your app disconnect and reconnect, any notification generated during this interval while not be available.

There is few ways to solve this problem:

  • retrieve the current state when application reconnect (with document:search for example)
  • persist notifications in a message queue, it could be Redis Stream, Kafka, or even the Aedes broker but all those solutions will involve cu…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yhilem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants