Showcase for spring cloud.
##build
mvn install
##start services The start of the different services will take some time. Watch the console output. The synchronization of the eureka cluster and the configserver uses the default time from spring-cloud.
./start.sh
After start is completed you can inspect services in the admin UI.
Access simple service with client using rest template.
Access simple service with client using feign.
Access simple service with client using zuul.
Repeat the link URL invocation and you should see that the called service instance changes.
##stop services
./stop.sh
Overview of the modules (micro services).
status | module | description | port | link |
---|---|---|---|---|
✅ | admin1 | UI to administrate spring-boot and spring-cloud services. | 7070 | admin1 |
✅ | admin2 | UI to administrate spring-boot and spring-cloud services. | 7071 | admin1 |
✅ | client1 | Simple frontend to show access to service using feign, rest template and zuul. | 8080 | client1 |
✅ | client2 | Simple frontend to show access to service using feign, rest template and zuul. | 8081 | client2 |
✅ | configserver1 | UI + configserver to provide configuration entries to service modules. | 7080 | configserver1 |
✅ | configserver2 | UI + configserver to provide configuration entries to service modules. | 7081 | configserver2 |
✅ | eurekaserver1 | Eureka server for services to register itself. | 8761 | eurekaserver1 |
✅ | eurekaserver2 | Eureka server for services to register itself. | 8762 | eurekaserver2 |
✅ | simpleservice1 | Simple service to return the name of the instance. | 8090 | simpleservice1 |
✅ | simpleservice2 | Simple service to return the name of the instance. | 8091 | simpleservice2 |
✅ | simpleservice3 | Simple service to return the name of the instance. | 8092 | simpleservice3 |