Skip to content

fabianogoes/kotlin-microservices-springcloud

Repository files navigation

Example of Microservices with Spring Cloud and Kotlin

This is an example of Microservices using Spring Cloud and Kotlin

Stack:

  • Java 1.8
  • Maven 3
  • Koltin 1.3.61
  • Spring Boot 2
  • Spring Cloud Hoxton.RELEASE
  • Server Register/Discover Eureka
  • Spring Cloud Config Server
  • Api Gateway Zuul
  • Actuator
  • Postman

References


Running all Services Local


Required Local Installed

  • Docker
  • docker-compose
./run.sh

Wait for complete boot and verify Eureka UI: http://localhost:8761 Eureka

Test using Postman

Import Postam Collection kotlin-microservices-springcloud.postman_collection.json

  1. HEALTH CHECK GATEWAY
  2. HEALTH CHECK CALCULATOR by GATEWAY
  3. HEALTH CHECK SIMULATION by GATEWAY
  4. GET CALCULATOR by GATEWAY
  5. GET SIMULATION by GATEWAY

Change any calculator's propertie in staging branch through of config repository

Execute again in the Postman

  1. POST refresh CALCULATOR by GATEWAY
  2. GET SIMULATION by GATEWAY