To enable zone handling, we need to perform some changes in the client's and gateway's configuration settings. Here's a modified application.yml file from the client application:
spring: profiles: zone1eureka: instance: metadataMap: zone: zone1 client: serviceUrl: defaultZone: http://localhost:8761/eureka/,http://localhost:8762/eureka/,http://localhost:8763/eureka/
The only thing that had to be updated is the eureka.instance.metadataMap.zone property, where we set the names of the zone and our service had been registered.
More changes have to be made in the gateway configuration. First, we need to add three profiles to be able to run an application registered in three different zones and three different discovery ...