I'm trying to send image numpy
arrays using the ZMQ pub/sub model. I followed the documentation here:
However, I realized that there would be a buildup of frames in my subscriber as the subscriber wouldn't be able to process the frames at the rate at which the publisher is sending due to the operations done on the subscriber side for the frames.
Since the documentation uses a multipart message to send the image array, I am unable to use the CONFLATE
option on set_sockopt
as that makes it only keep a part of the multipart.
My question: Is there a way for the subscriber to keep only the latest multipart message?