Is your feature request related to a problem? Please describe.
In the current implementation of the RealtimePublisher we use the try_publish(msg) function for publishing. This function is non-blocking but it does give no guarantee that the msg will actually be published.
We could check the return value and if an try again, however this lays responsibility on the user of the RealtimePublisher to wait and retry or buffer and retry later. I would like to have a version of the RealtimePublisher where you can enqueue a message and it will be published at the next possible time.
Describe the solution you'd like
A possible sollution would be a version of the RealtimePublisher which can enqueue messages and published them.
Describe alternatives you've considered
I would like to discuss this approach and alternative approaches are welcome.
Is your feature request related to a problem? Please describe.
In the current implementation of the
RealtimePublisherwe use thetry_publish(msg)function for publishing. This function is non-blocking but it does give no guarantee that the msg will actually be published.We could check the return value and if an try again, however this lays responsibility on the user of the
RealtimePublisherto wait and retry or buffer and retry later. I would like to have a version of theRealtimePublisherwhere you can enqueue a message and it will be published at the next possible time.Describe the solution you'd like
A possible sollution would be a version of the
RealtimePublisherwhich can enqueue messages and published them.Describe alternatives you've considered
I would like to discuss this approach and alternative approaches are welcome.