|
|
|
|
|
by louthy
3668 days ago
|
|
This looks very interesting. I use Redis as a backend for an actor-system [1] as part of a larger functional framework for C# [2]. I use RPUSH to add messages to an actor's queue along with PUBLISH for saying 'new message' to the actor that should check its inbox, this is then followed by LINDEX 0 to peek at the item at the head of the queue, before calling LPOP when the message has been successfully processed. If I'm understanding this correctly, that process could be wrapped up in a single stream? [1] https://github.com/louthy/language-ext/tree/master/LanguageE... [2] https://github.com/louthy/language-ext |
|