Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Redis Streams is built-in and does all that for you. https://redis.io/topics/streams-intro


You're probably right. I did this before streams were a thing.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: