I'm currently dealing with a problem caused by the blue green deployment pattern.
We have a single SQS queue, which messages can be consumed for both from blue and green servers.
I like to make the green (new version) to consume messages originated from green servers.
I thought about passing a variable for g/b value in the message, and re-queue it if its being processed by the wrong worker. But this may cause delays (multiple re-queues etc..)
Is there a common practice for this problem?