News for hackers. Stuff that matters.
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.
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
Re:The End of the Redis Adventure by nurettin on Wednesday July 01, 2020 @02:34AM (#23698426)
You're probably right. I did this before streams were a thing.