Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC on implementing Redis Pub/Sub #10

Open
rvanlaak opened this issue Apr 26, 2022 · 0 comments
Open

RFC on implementing Redis Pub/Sub #10

rvanlaak opened this issue Apr 26, 2022 · 0 comments

Comments

@rvanlaak
Copy link

Where Redis Streams allow Symfony Messenger to divide work across multiple consumers, Redis Pub/Sub would allow Symfony Messenger to spread one message to all consumers. See https://redis.io/docs/manual/pubsub/

Did you consider implementing pub/sub on the adapter as well?

Our use-case:

  • A cronjob triggers the generation of a huge xml file.
  • A container does the processing for that on the background in another container.
  • Once the background processing is finished, that background container needs to make the frontend facing containers (4 of them) aware that they should download the xml file to their local container.

Having pub/sub in Symfony Messenger would allow us to simply add an extra transport that is configured as pub/sub to make the last step of the use-case possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant