Skip to content

Is it possible to subscribe to 2 or more AWS SQS queue with-in the same application #124

Answered by ashovlin
madhub asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you can subscribe to multiple queues from a polling application. A single BackgroundService will poll both queues, with a long-running task for each queue.

You only need to register the message handler one time, they are not tied to a specific queue. Note that they are registered and retrieved as scoped services, so the handler will be created once per each message that is received.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ashovlin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants