Server: Spring-Boot embeded Tomcat Server, Spring-Boot-REST-API
Client: Postman, Browser
Database: MySQL,JPA, Hibernate
Service Discovery: Spring Cloud relies on services like Eureka Server to help register and locate microservices within the application.
Configuration Management: It integrates with Spring Cloud Config Server for centralized configuration management. Individual microservices use the Spring Cloud Config Client to fetch their configurations.
Routing: Tools like Spring Cloud Gateway can be used to provide a single entry point for API requests and route them to appropriate microservices.
Resilience: Libraries like resilience4j can be used to implement features like circuit breakers and fault tolerance for handling service failures gracefully.
Other functionalities: Spring Cloud offers various other tools for distributed messaging, task execution, and monitoring in a microservices architecture.
### INSTALL rabbitmq
* pull rabbitmq docker image
* docker pull rabbitmq:3.11.0
* docker run --rm -it -p 5672:5672 rabbitmq:3.11.0
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bus-amqp</artifactId>
</dependency>
docker pull openzipkin/zipkin
docker run -d -p 9411:9411 openzipkin/zipkin
employee-service -> http://localhost:9090
department-service -> http://localhost:8080
api-gate-way -> http://localhost:2000
config-server -> http://localhost:3000
service-discovery-> http://localhost:8761
GET /api/items
Parameter | Type | Description |
---|---|---|
api_key |
string |
Required. Your API key |
GET /api/items/${id}
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Id of item to fetch |
Takes two numbers and returns the sum.