Publish-Subscribe message

56 views
Skip to first unread message

magsi arif hussain

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

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,

Arif

David Maier (Redis Labs)

unread,
Oct 21, 2020, 9:05:01 AM10/21/20
to redi...@googlegroups.com
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.

Regards,
David





--
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 redis-db+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/redis-db/3fa032be-6afd-4eb8-a7f9-cc4b0aaa46ean%40googlegroups.com.


--
David Maier
Director of Technical Enablement






Disclaimer

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

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

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
Forward
0 new messages