Skip to content

badalb/spring-cloud-microservices

Repository files navigation

Spring Cloud Microservices

Scale Cube

untitled diagram 3

Architecture

untitled diagram

Microservice components

untitled diagram 5

untitled diagram 4

Server side discovery

untitled diagram 1

API Gateway

untitled diagram 2

Ribbon (Client Side Load balancing)

untitled diagram 3

Hystrix Dashboard

hystrix-web-console

Deployment in Docker Containers

untitled diagram 7

Source Control, CI, Docker Pipeline

b6zmkdgnwn24jggg74yfjlntzqrqzn7y9abztaxoq8q

Run the application

We can run this application starting individual services or from docker.

Run the application by starting individual services

All the services are written using spring boot so all the services has a starting Application entry point.

  1. Book Service and Review service are using MYSQL database so we need to start the docker database first a. Goto ${BASE_DIR}/spring-cloud-microservices/ and execute $ docker-compose -f docker-db-conpose.yml up b. Alternatively we can create bookservice and reviewservice schema in our local db as flyway can't create the schema c. If we have selected the second approach make sure db connection port has also been updated properly.

  2. Start a. service-registry b. uaa-service c. book-service d. hystrix-monitor-service e. inventory-service f. review-service g. api-gateway

  3. Individual services can be accessed
    a. Eureka Service: http://localhost:8761 b. API Gateway: http://localhost:8080 c. Hystrix Dashboard: http://localhost:9000/hystrix

  4. To see application running access the URL http://localhost:8080/books/api/v1/books It will take care of redirecting the browser for UAA

Run the application from Docker

We have to go to ${BASE_DIR}/spring-cloud-microservices/ and execute $ docker-compose up. It will take care of all the services anlongwith MYSQL DB one by one.

  1. Individual services can be accessed
    a. Eureka Service: http://localhost:8761 b. API Gateway: http://localhost:8080 c. Hystrix Dashboard: http://localhost:9000/hystrix

  2. To see application running access the URL http://localhost:8080/books/api/v1/books It will take care of redirecting the browser for UAA

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published