Launching microservices

I have changed a configuration for all the microservices in application.yml. Now, there are two different profiles, the first used for assigning an application to zone1 and the second for zone2. You may check out the version from the feign_with_discovery branch (https://github.com/piomin/shown here-spring-cloud-comm/tree/feign_with_discovery). Then, build the whole project using the mvn clean install command. The application should be launched with the java -jar --spring.profiles.active=zone[n] command, where [n] is the number of the zone. Because you have to start many instances to perform that test, it is worth considering a limit on heap size by setting the -Xmx parameter, for example, -Xmx128m. Here are the current ...

Get Mastering Spring Cloud now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.