4 ms·
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 a
by nurettin 6y ago
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.
- manigandham 6y agoRedis Streams is built-in and does all that for you. https://redis.io/topics/streams-intro https://redis.io/topics/streams-intro
- nurettin 6y agoYou're probably right. I did this before streams were a thing.