Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fabianogoes/kotlin-microservices-springcloud
Example of Microservices with Spring Cloud and Kotlin
https://github.com/fabianogoes/kotlin-microservices-springcloud
apigateway config-server discovery-server eureka-server kotlin microservice microservices microservices-architecture netflixoss spring-boot spring-cloud springframework zuul-server
Last synced: about 1 month ago
JSON representation
Example of Microservices with Spring Cloud and Kotlin
- Host: GitHub
- URL: https://github.com/fabianogoes/kotlin-microservices-springcloud
- Owner: fabianogoes
- Created: 2019-12-14T21:49:49.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-23T20:13:22.000Z (almost 5 years ago)
- Last Synced: 2024-10-02T09:10:36.599Z (about 2 months ago)
- Topics: apigateway, config-server, discovery-server, eureka-server, kotlin, microservice, microservices, microservices-architecture, netflixoss, spring-boot, spring-cloud, springframework, zuul-server
- Language: Shell
- Homepage:
- Size: 314 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
--------------- [Spring Cloud][0]
- [Spring Cloud Netflix Eureka][1]
- [Spring Cloud Config][2]
- [Spring REST with a Zuul Proxy][3]
- [Spring Cloud – Bootstrapping](https://www.baeldung.com/spring-cloud-bootstrapping)
- [A Guide to Spring Cloud Netflix – Hystrix](https://www.baeldung.com/spring-cloud-netflix-hystrix)### Running all Services Local
-----------------**Required Local Installed**
- Docker
- docker-compose```
./run.sh
```**Wait for complete boot and verify Eureka UI:** http://localhost:8761
![Eureka](docs/eureka-ui.png)### 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](https://github.com/fabianogoes/config-server-repo)
**Execute again in the Postman**
1. POST refresh CALCULATOR by GATEWAY
2. GET SIMULATION by GATEWAY[0]: https://spring.io/projects/spring-cloud
[1]: https://cloud.spring.io/spring-cloud-netflix/reference/html/
[2]: https://cloud.spring.io/spring-cloud-config/reference/html/
[3]: https://www.baeldung.com/spring-rest-with-zuul-proxy