Re:The End of the Redis Adventure
by nurettin on Wednesday July 01, 2020 @12:57AM
(#23697878)
Name of the hash is a topic. Keys are nanosecond timestamps, values are the packets. You put in the data, you send a pub notify to the listener, listener goes and drains the queue. It acts as a direct exchange queue, recovers fine from a restart and it works wonderfully. For fanout, you can simply use pub sub. For topical, you can keep a list of direct exchange queue hashes. I haven't needed it.
[ Parent
| on HN ]
Re:The End of the Redis Adventure
by manigandham on Wednesday July 01, 2020 @02:20AM
(#23698342)
Redis Streams is built-in and does all that for you. https://redis.io/topics/streams-intro