Publish-Subscribe message

Skip to first unread message

magsi arif hussain

Oct 21, 2020, 8:54:53 AM10/21/20
to Redis DB

I need to answer following question please.

In Publish-Subscribe approach, a subscriber remains disconnected/ Absent from network for several days. After Re-joining the network, a subscriber wants to receive all those packets which were shared during its absence.

How is it possible to receive all those packets which were shared during subscriber's absence?

Looking for reponse.

With High Regards,


David Maier (Redis Labs)

Oct 21, 2020, 9:05:01 AM10/21/20
Hi Arif,

PubSub is fire and forget, which means that only subscribers that are present are able to receive the published messages. If you want to have something that is keeping the messages, then you should go with Redis Streams. With streams a 'subscriber/consumer' could remember the last id that was consumed, and then request the new messages (that were produced during its absence).

Further details can be found here:

Hope this helps.


You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

David Maier
Director of Technical Enablement


The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.

Reg Reg

Apr 5, 2022, 12:48:35 PMApr 5
to Redis DB

Cant, we use the Redis Streams as fire and forget scenarios?  I want to drop the messages from the streams when the subscriber is not online. 

Reply all
Reply to author
0 new messages