A cluster-based on a peer-to-peer replication model is a good way to go in most cases, but not always enough. Eureka has one more interesting feature that can be very useful in a clustered environment. A zone mechanism is, in fact, the default behavior. Even if we have a single standalone service discovery instance, every client's property has to be set to eureka.client.serviceUrl.defaultZone
in the configuration settings. When will this be useful to us? To analyze it, we go back to the example from the previous section. Let's imagine that now we have our environment divided into three different physical networks, or we just have three different machines processing the incoming requests. Of course, discovery services are still grouped logically in the cluster, but each instance is placed in a separated zone. Every client application would be registered in the same zone as its main discovery server. Instead of one instance of the Zuul gateway, we are going to launch three instances...
![country flag](/images/countries/argentina.png)
![country flag](/images/countries/australia.png)
![country flag](/images/countries/austria.png)
![country flag](/images/countries/belgium.png)
![country flag](/images/countries/brazil.png)
![country flag](https://cdn.packtpub.com/flag/004da5c4-583f-4e69-a0a8-0e999f350f90_128px-Flag_of_Bulgaria.png)
![country flag](/images/countries/canada.png)
![country flag](/images/countries/chile.png)
![country flag](/images/countries/colombia.png)
![country flag](/images/countries/cyprus.png)
![country flag](/images/countries/czech.png)
![country flag](/images/countries/denmark.png)
![country flag](/images/countries/ecuador.png)
![country flag](/images/countries/egypt.png)
![country flag](/images/countries/estonia.png)
![country flag](/images/countries/finland.png)
![country flag](/images/countries/france.png)
![country flag](/images/countries/germany.png)
![country flag](/images/countries/gb.png)
![country flag](/images/countries/greece.png)
![country flag](/images/countries/hungary.png)
![country flag](/images/countries/india.png)
![country flag](/images/countries/indonesia.png)
![country flag](/images/countries/ireland.png)
![country flag](/images/countries/italy.png)
![country flag](/images/countries/japan.png)
![country flag](/images/countries/latvia.png)
![country flag](/images/countries/lithuania.png)
![country flag](/images/countries/lux.png)
![country flag](/images/countries/malaysia.png)
![country flag](/images/countries/malta.png)
![country flag](/images/countries/mexico.png)
![country flag](/images/countries/netherlands.png)
![country flag](/images/countries/newzealand.png)
![country flag](/images/countries/norway.png)
![country flag](/images/countries/philippines.png)
![country flag](/images/countries/poland.png)
![country flag](/images/countries/portugal.png)
![country flag](/images/countries/romania.png)
![country flag](/images/countries/russia.png)
![country flag](/images/countries/singapore.png)
![country flag](/images/countries/slovakia.png)
![country flag](/images/countries/slovenia.png)
![country flag](/images/countries/southafrica.png)
![country flag](/images/countries/southkorea.png)
![country flag](/images/countries/spain.png)
![country flag](/images/countries/sweden.png)
![country flag](/images/countries/switzerland.png)
![country flag](/images/countries/taiwan.png)
![country flag](/images/countries/thailand.png)
![country flag](/images/countries/turkey.png)
![country flag](/images/countries/ukraine.png)
![country flag](/images/countries/us.png)