Please enable JavaScript.
Coggle requires JavaScript to display documents.
Microservices, Important services, Gateway For all microservices one…
Microservices
-
-
-
-
Common configuration in All microservices spring.application.name=microservice name
server.port=port number
-
-
service registry for all microservices where all microservices information present in the central registry
Spring Cloud Sleuth is one of the projects under Spring Cloud which allows us to trace a request. Sleuth adds two things: a traceId and a spanId in our logs. TraceId is a unique ID generated for every request. Span ID is a unique ID generated for the span or path of a single microservice
Microservices Microservice is an architectural style. In this style, the application is made up of smaller ( or micro ) apps that communicate with each other, through open protocols like HTTP.
connecting microservices in business logic using Rest template :
URI uri= client.getInstances("").get(0).getUri();
String message = new RestTemplate().getForObject(uri,String.class);
-
Hystrix, Resilience4j APIs help to apply a circuit breaker pattern in our application.
-