Blue/Green deployment with Consul

Hello,

I have RabbitMQ 3.7 running and it is registered on Consul as rabbitmq-37 and now I want to do upgrade to version 3.8 so I set another cluster as rabbitmq-38. Is it possible to create an alias for a service, like rabbitmq, that will point to one of two services, so that I can always use the same service name in my applications?
I did have some limited success with registration of “external” service like this:

{
  "Datacenter": "test",
  "Address": "rabbitmq-37.service.consul",
  "Node": "aliasnode",
  "Service": {
    "Service": "rabbitmq"
  }
}

but the problem with this is that ports are not resolved properly for SRV records.
Is there some other way? Maybe I am doing it all wrong. :slight_smile:

Thanks,
Damir