Is there a way to remove old, processed MQTT data? #1544
Unanswered
tukusejssirs
asked this question in
Q&A
Replies: 1 comment
-
Is there a way to define a TTL for received messages? I’d like to set to to 10 seconds. That said, I’d like to automatically delete all processed messages. A processed message is a message that was used in the callback function of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the browser (Firefox), I connect to a MQTT broker (over websockets). I simply subscribed to 600 topics and publish no messages.
After a few minutes (let’s say 20 minutes), I see in the developer tools of the browser that the data reaches 100 MiB, which causes browser to start freezing.
In my use case, I only need the latest messages, i.e. all processed data should be removed from (browser) memory. The client should be connected to the broker indefinately, or at least 16 hours continuously every day.
Is there a way to make sure that the processed messages (data) are deleted from (browser) memory?
Beta Was this translation helpful? Give feedback.
All reactions