A examples directory with recipes? #65
KennyHoang-CS
started this conversation in
General
Replies: 1 comment 3 replies
-
|
Hi @KennyHoang-CS, sounds like you need a queue with some persistence. Usually, Valkey Pub/Sub can't be used as a queue because a consumer will never get messages that were published during its disconnection. Valkey Stream can be used as a queue, but it is super complicated. I will just suggest you use Valkey List (LPUSH+BRPOP). If you can provide how your current application uses the go channels, we may come up with better recipes. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Thoughts of an example directory with recipes like:
So far, it looks like I need to look at the func doc comments if I were to put something together using valkey-go.
I'm interested to see if I can set up valkey-go as an external data store via aws elasticcache (w/ the valkey engine).
The problem I run to at the moment before valkey is that .. I have an app that uses golang channels to handle messages in the app's internal memory, so if it the app goes down (I lose state of the messages), would valkey-go solve this? Hence, I was looking to see if there is a valkey-go example/recipe that can handle this.
Beta Was this translation helpful? Give feedback.
All reactions