FIFO/LIFO message queues #1485
Replies: 2 comments 4 replies
-
This is by design - both because it's more efficient for the remote endpoint's database to receive and insert locations in timestamp order, and because the time taken to dump a large number of locations onto MQTT after a period offline is not large (MQTT will buffer / deliver them as appropriate without blocking the client). I'm interested to understand more the specific problem / use-case where that doesn't work though. Are you finding it takes too long to catch-up after a period offline? |
Beta Was this translation helpful? Give feedback.
-
Ok did some benchmarks. I'm getting better results with a dedicated mosquitto instance: |
Beta Was this translation helpful? Give feedback.
-
It seems to me the message queue for MQTT is using a FIFO queue.
I'm using owntracks to stream my position and displays it on a web application.
It seems to me the last positions should be sent in priority to have the last position first.
Is it somthing that can be considered as configuration ?
When the applicaiton is offline for quite a while, offline messages is sent in the order they were created.
Beta Was this translation helpful? Give feedback.
All reactions