In this assignment your PR must only modify the README.md
file.
Please, go to the Wiki in order to get the instructions for this assignment.
The code is based on the post Microservices with Spring developed by Paul Chapman. The laboratory shows a simple example of setting up a microservices inspired system using Spring Boot and Eureka. This project contains three apps:
- Service discovery (
registration
): It launches an open source discovery server called Eureka that will use the port 1111. The dashboard of the registration server is exposed inhttp://localhost:1111
. - Microservice account service (
accounts
): It is a standalone process that provides a RESTful server to a repository of accounts that will use the port 2222. What it makes special is that it registers itself to Eureka with the nameACCOUNTS-SERVICE
. After launching this service you can see in the dashboard of Eureka that after a few seconds (10-20 secs) theACCOUNTS-SERVICE
service appears. - Microservice web service (
web
): It is a standalone process that provides an MVC front-end to the application of accounts that will use the port 3333. What it makes special is that it registers itself to the Eureka with the nameWEB-SERVICE
and asks the Eureka where is theACCOUNTS-SERVICE
. Spring configures automatically an instance ofRestTemplate
for using the discovery service transparently!!!
This is a NOT a speed competition. The objective is to show that the following activities have been accomplished:
- The two microservices
accounts (2222)
andweb
are running and registered (two terminals, logs screenshots). - The service registration service has these two microservices registered (a third terminal, dashboard screenshots)
- A second
accounts
microservice instance is started and will use the port 4444. This secondaccounts (4444)
is also registered (a fourth terminal, log screenshots). - What happens when you kill the microservice
accounts (2222)
and do requests toweb
?
Can the web service provide information about the accounts again? Why?
The above must be documented in a brief report (report.md
) with screenshots describing what happens.
In progress:
- Dockerize the three services.
- Docker compose with scale by command line.
- Circuit breaker for the requests from web to accounts that avoids a 500 error.
Proposed:
Manifest your intention first by a PR updating this README.md
with your goal.
If you desist of your goal, release it by a PR so other fellow can try it.