Summarizing the BrownField PSS architecture

The following diagram shows the overall architecture that we have created with the Config server, Eureka, Feign, Zuul, and Cloud Streams. The architecture also includes the high availability of all components. In this case, we assume that the client uses the Eureka client libraries:

Summarizing the BrownField PSS architecture

The summary of the projects and the port they are listening on is given in the following table:

Microservice

Projects

Port

Book microservice

chapter5.book

8060 to 8064

Check-in microservice

chapter5.checkin

8070 to 8074

Fare microservice

chapter5.fares

8080 to 8084

Search microservice

chapter5.search

8090 to 8094

Website client

chapter5.website

8001

Spring Cloud Config server

chapter5.configserver

8888/8889

Spring Cloud Eureka server

chapter5.eurekaserver

8761/8762

Book API gateway

chapter5.book-apigateway

8095 to 8099

Check-in API gateway

chapter5.checkin-apigateway

8075 to 8079

Fares API gateway

chapter5.fares-apigateway

8085 to 8089

Search API gateway

chapter5.search-apigateway

8065 to 8069

Follow these steps to do a final run:

  1. Run RabbitMQ.
  2. Build all projects using pom.xml at the root level:
    mvn –Dmaven.test.skip=true clean install 
    
  3. Run the following projects from their respective folders. Remember to wait for 40 to 50 seconds before starting the next service. This will ensure that the dependent services are registered and are available before we start a new service:
    java -jar target/fares-1.0.jar
    java -jar target/search-1.0.jar
    java -jar target/checkin-1.0.jar
    java -jar target/book-1.0.jar
    java –jar target/fares-apigateway-1.0.jar
    java –jar target/search-apigateway-1.0.jar
    java –jar target/checkin-apigateway-1.0.jar
    java –jar target/book-apigateway-1.0.jar
    java -jar target/website-1.0.jar
    
  4. Open the browser window, and point to http://localhost:8001. Follow the steps mentioned in the Running and testing the project section in Chapter 4, Microservices Evolution – A Case Study.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.111.49