Skip to content

rauljavierre/lab6-microservices

Repository files navigation

Web Engineering 2020-2021 / Microservices

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.

Primary goal

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 in http://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 name ACCOUNTS-SERVICE. After launching this service you can see in the dashboard of Eureka that after a few seconds (10-20 secs) the ACCOUNTS-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 name WEB-SERVICE and asks the Eureka where is the ACCOUNTS-SERVICE. Spring configures automatically an instance of RestTemplate 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) and web 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 second accounts (4444) is also registered (a fourth terminal, log screenshots).
  • What happens when you kill the microservice accounts (2222) and do requests to web?
    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.

Secondary goal (:gift:)

In progress:

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.

NIA User name Repo Improvement Score
760739 Alberto Calvo AlbertoCalvoRubio/lab6-microservices Dockerize the three services
739202 Luis Garcia luisgg98/lab6-microservices Docker compose with scale by command line
760704 Álvaro García Alvarogd6/lab6-microservices
758803 Daniel González Uncastellum/lab6-microservices
758906 rauljavierre rauljavierre/lab6-microservices Circuit breaker for the requests from web to accounts that avoids a 500 error

About

Laboratory 6: Microservices - Deadline 2021-01-08

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published