I have an application that keeps computing stream data from T1(i.e 8:00 AM) to T2(i.e. 10:00 AM). I want to utilize the pyzmq to serve the data to clients by building a data server based on ZMQ.
For example, if a client connects to the server @8:10 AM, the server will send all old data before 8:10 AM and all new updates to the client. The client will get data based on the submitted topic list.
if the client connects to the server @7:00 AM, the server simply does nothing.
if the client connects to the server @11:00 AM, the server will send all available data from 8:00AM-10:00AM to the client and then close the connection.
Based on my understanding, I should use the Publish/Subscribe pattern. However, the a publisher has no connected subscribers, then it will simply drop all messages. This is NOT what I need.
https://learning-0mq-with-pyzmq.readthedocs.io/en/latest/pyzmq/patterns/pubsub.html
Question> In my use case, how I should implement the client/server with ZMQ and which messaging pattern I should use?
Thank you