Preview of Spring Cloud Lattice implementation
- Install lattice
- Follow the getting started guide, including scaling
lattice-app
to 3 - run
mvn package
- run
java -jar spring-cloud-lattice-sample/target/spring-cloud-lattice-sample-1.0.0.BUILD-SNAPSHOT.jar
- visit http://localhost:8080?service=lattice-app verify that the 3 services rotate through as you refresh
cd spring-cloud-lattice-sample
mvn clean package docker:build
docker tag spring-cloud-lattice-sample:latest <yourdockerhubid>/spring-cloud-lattice-sample
docker push <yourdockerhubid>/spring-cloud-lattice-sample
LATTICE_CLI_TIMEOUT=180 ltc create spring-cloud-lattice-sample spencergibb/spring-cloud-lattice-sample
ltc scale spring-cloud-lattice-sample 3
- visit http://spring-cloud-lattice-sample.192.168.11.11.xip.io?service=spring-cloud-lattice-sample verify that the 3 services rotate through as you refresh
- visit http://spring-cloud-lattice-sample.192.168.11.11.xip.io/me verify that the 3 services rotate through as you refresh