Giter Site home page Giter Site logo

wesleyegberto / spring-cloud-study Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 251 KB

Spring Cloud projects from my study

License: MIT License

Shell 3.91% Java 87.81% Dockerfile 6.21% HTML 2.07%
spring-boot spring-cloud spring-cloud-netflix zuul-server eureka-discovery-service hystrix-dashboard

spring-cloud-study's Introduction

Spring Cloud + Netflix Stack

Projects

  • Karyon
  • Spring Cloud Gateway
  • Eureka Server and Clients
  • Hystrix and Dashboard

Complete Scenario

Infra Components

  • RabbitMQ
    • Will store the events from API's hystrix.
  • Eureka Server
    • Registry server to our service register themselves;
    • Will be used by Zuul to proxy ingoing request.
  • Zuul Server
    • Our API Gateway;
    • Query the Eureka server to get the registered services and create proxies for each one.
  • Turbine Streamer
    • The Turbine server to aggregate the metrics from state of hystrix commands.
  • Monitor Dashboard
    • The dashboard to visualize metrics.

Business Components

  • Stock Service
    • Our Stock API.
  • Store Service
    • Our Store API that consumes Stock API.

Usage

RabbitMQ

  • Access: http://localhost:15672/#/queues
    • User: guest
    • Password: guest

Turbine Stream

  • Access: http://localhost:8989/turbine.stream

Dashboard Monitor

  • Access: http://localhost:7979/hystrix
    • Usar URL do Turbine Stream que é exibida no dashboard do Eureka

Eureka

  • Access: http://localhost:8761/
  • Request: GET http://localhost:8761/eureka/apps

Zuul

  • Request some api: http://localhost:8080/<service_name>/<path>
  • Access page with links: http://localhost:8080/
  • Hystrix stream: GET http://localhost:8080/actuator/hystrix.stream

Stock Service:

  • Direct request: GET http://localhost:8090/stocks/products/123/available
  • Gateway request: GET http://localhost:8080/stock-service/stocks/products/123/available

Store Service:

  • Direct request: GET http://localhost:8095/store/order/item/123
  • Gateway request: GET http://localhost:9090/store-service/store/order/item/123
  • Hystrix stream: GET http://localhost:8095/actuator/hystrix.stream

Generating Métrics

  • ab -n 1000 -c 20 http://localhost:8080/stock-service/stocks/products/123/available
  • ab -n 1000 -c 20 http://localhost:8080/store-service/store/order/item/123

spring-cloud-study's People

Contributors

wesleyegberto avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

hungnq-dev

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.