I am using ZUUL with Eureka.
Lets say, I have two instances of microservice, say test. Their configuration is as follows
spring:
application:
name: test
server:
port: 7878
eureka:
instance:
metadata-map:
version: 1
and
spring:
application:
name: test
server:
port: 7879
eureka:
instance:
metadata-map:
version: 2
If I send version: 1
in http header then request should go to first instance of microservice and if version: 2
then it should go to second instance microservice.
How can I achieve this ?