lundi 18 décembre 2017

How to handle blue/green deployment with RabbitMQ?

In our cloud environment, when a new instance is deployed, we run integration tests. However, it gets tricky because the new code is injecting messages in the queue for the service being deployed, while existing instances (previous version) are still running. We have a blue/green deployment.

Would it be possible for RabbitMQ to have many listeners listening on a queue BUT only for a specific version?

For example, all running servers would read messages for the version 2017.10.20 (previous version) or older versions, but they would not read messages that are for newer versions.

This way I could deploy a new service and none of the other droplets would read its test messages.

Aucun commentaire:

Enregistrer un commentaire