-
Notifications
You must be signed in to change notification settings - Fork 13
Description
This is a great library that I came across (at medium.com) when looking for dynamic changes at runtime for my SQS based spring-boot microservice.
@QueueListener("${foo.sqs.queue.url}")
public void processMessage(@Payload final String payload) {
// process the message payload here
}
I am using QueueListener which at the app startup loads foo queue url just fine. But while the app is up and running processing events from the queue, if I want to dynamically change the queue to a different queue, say foo-test url, does your library support it? Could you please provide a sample of the same ?
Background: I am trying to run a test queue part of my Blue-Green deployment and the deployment would start with the test queue. Once messages from the test queue are processed and the test is successful in the passive stack, I want to dynamically change the queue to the production queue.
Please advise on how to achieve this. If there are alternative approaches, let me know. Thanks in advance!