Skip to content

Commit

Permalink
ReadMe files Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
kdsalvy committed Jul 17, 2020
1 parent 6923f36 commit fef06d3
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
1 change: 1 addition & 0 deletions spring-cloud/catalog-service/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Sample Project to Understand the concepts of Spring Cloud Modules
* Retry using Feign Client (Commented Ribbon BackOffRetry Bean, doesn't work otherwise)
* Included Sleuth and Zipkin dependency for distributed tracing
* Spring Cloud Bus added to fetch configurations on git commit, automatically.
* Integrated Spring Boot Admin for service administration and monitoring.

## Work In Progress Concepts
* Retry and BackOff strategies using Ribbon and Spring Retry (Not Working)
Expand Down
13 changes: 12 additions & 1 deletion spring-cloud/config-server/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
*The central configuration server which fetches the latest configuration from Git and then we can call /actuator/refresh API to refresh the configurations of the client without bouncing the server(Provided Client has @RefreshScope on the @Configuration class whose properties need to be refreshed).

* Included Sleuth and Zipkin dependency for distributed tracing
* Integrated Spring CLoud Bus for auto config fetch and refresh for services.

## Spring Cloud Bus Details for Config server


* Need to run rabbitmq server for this feature to work.
* Most simple way to do that is using docker image. Run below command after installing docker to start a rabbitmq server.

```
docker pull rabbitmq:3-management
docker run -d --hostname my-rabbit --name some-rabbit-new -p 15672:15672 -p 5672:5672 rabbitmq:3-management
```
* All the dependencies and configurations must be in place, both in config server and client.
* We can add a webhook to call /monitor uri of config-server to automatically update the configurations or we can do it manually by below step for all services at once.
* We can directly call /actuator/bus-refresh uri to refresh the configurations. This will refresh all the configurations in config server and all other services connected to cloud bus.
6 changes: 3 additions & 3 deletions spring-cloud/movie-info-service/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

* Will call The Movies DB site and get the movie Info for Ids passed. Example Service to demonstrate
Service Discovery.

* Using Config Client to fetch configurations from config server on start of the service.

* Included Sleuth and Zipkin dependency for distributed tracing
* Integrated Spring CLoud Bus for auto config fetch and refresh for services.
* Included Sleuth and Zipkin dependency for distributed tracing
* Integrated Spring Boot Admin for service administration and monitoring.
5 changes: 3 additions & 2 deletions spring-cloud/rating-data-service/ReadMe.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Ratings Info Service

* This is a sample service that returns hardcoded ratings for harcoded movie Ids. This uses service discovery but unlike movies info service, it doesn't using config server in order to spawn multiple instances by passing port in command line to test load balancing.

* Included Sleuth and Zipkin dependency for distributed tracing
* Included Sleuth and Zipkin dependency for distributed tracing
* Integrated Spring Cloud Bus for auto config fetch and refresh for services.
* Integrated Spring Boot Admin for service administration and monitoring.

0 comments on commit fef06d3

Please sign in to comment.