Spring cloud Gateway with round-robbin Load Balancer strategy
- Article Server
- Stats Server
- Sightseeing Server
5555
Service | Route |
---|---|
Articleserver | http://localhost:5555/articleserver/ [article, articles, article/{id}] |
Sightseeingserver | http://localhost:5555/sightseeingserver/ [sightseeings, sightseeings/{id}] |
Statsserver | http://localhost:5555/statsserver/ [article/{id}, stats/month, stats/all, stat/{id}] |
⚠️ Gateway is forwarding to http://localhost:/api/
When starting for example multiple Article Server (Ports: [8080, 8765]) and then do a request to the gateway on port 5555, than you will see that every call to the gateway will forward to the 2 server instances. 1. Request is on 8080, 2. request is on 8765, 3. on 8080 again, ....
⚠️ For Testing the loadbalancer, simply start the second instance of article server in intellij
Service registry
- Article Server
- Stats Server
- Sightseeing Server
8761
Manages all configs for all the microservices
- Article Server Config
- Stats Server Config
- Sightseeing Server Config
- Money Server Config
8888
Manages all articles
- Adding Article
- Get Article (all, byID)
After starting the Server, you can view the API in Swagger - Article Server
8080
Manages all the stats
- Adding Article
- Get Stats (month, all, byID)
- Count stats 1
After starting the Server, you can view the API in Swagger - Stats Server
8071
Manages all the sightseeing entrys
- Get Sightseeing Entry (all, byID)
After starting the Server, you can view the API in Swagger - Sightseeing Server
8061
Manages the monthly payment Scheduling every Month once Cron: 1 48 13 19 * ?
8051
npm install
npm run serve
npm run build
npm run lint
8081