[WIP] Multiple queues #11
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I want to implement the possibility to use multiple queues/backends. This PR is not ready for merge.
I've made sure that you may configure the bundle for multiple backends. I followed the pattern from SwiftMailerBundle.
I got some problem I want some help solving.
Service configuration
There is a lot of services depending on the backend configuration.
fervo_deferred_event.queue.sidekiq
fervo_deferred_event.queue.amqp
fervo_deferred_event.service.message_service
Should we duplicate these for each backend? Like:
fervo_deferred_event.defaut.queue.sidekiq
fervo_deferred_event.otherBackend.queue.amqp
The listener
Should we create a duplicate for
fervo_deferred_event.listener
for each backend as well?Same event different backends
How do we solve the problem when the same event should be deferred to multiple backends?
Look at these lines