stream - A data buffer to subscribe and unsubcribe with real-time data using rabbitmq -
Actually I want to create a data buffer that the client can sometimes subscribe, get all the data from the last time Keep listening, for real-time data, then unsubscribe after some time, and repeat.
I'm thinking of using a TTL rabbit queue that ends. This idea sometimes subscribes to the client and is unrelated to it. When the customer subscribes to the queue, he should receive all the messages in the queue. Then the real time data on the client channel will be pushed to them.
Is this a good way to go about this? I know how to make pub / how can I make it about rabbits, so that the customer can push all the data on Qi on the criterion?
It depends on how much data you are talking about on your method The drawback is that the queue can fill with a large amount of data, if the data rate is high and TTL is set to long. You have to keep the queue alive and you have a line from the beginning for every possible customer.
I would suggest suggesting it to keep more messages.
Comments
Post a Comment