Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upPubSub documentation example unclear on concurrent use #1271
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following example exist in the docs:
https://godoc.org/github.com/go-redis/redis#ex-PubSub
Based on the documentation it seems that:
I am struggling to determine the correct setup for an app that has long lived connections, where each connection could be subscribed to the same topic, for example topicfoobar or each connection has it's own topic.
In my example I can have multiple consumers that all need a copy of the message from the producer.
It is possible to update the documentation or provide an example how to handle multiple consumers for dynamic topics.