Spring Cloud Usage Sample

Source: Internet
Author: User

Spring Cloud Demo

Project Address: Https://github.com/hackyoMa/spring-cloud-demo

Component

Spring Cloud Demo based on spring Boot 2.0.4, Spring Cloud FINCHLEY.SR1
Examples of the following components are included:

  • Eureka (service registration and discovery)
  • Feign (service consumer)
  • Zuul (Routing Gateway)
  • Turbine (Circuit breaker aggregation monitoring)
  • Zipkin (service link Tracking)
  • Spring Boot Admin (Service Monitoring Center)
  • Spring Cloud Config (Service configuration Center)
Component architecture

    1. External or internal non-spring cloud project Unified access to internal services via API Gateway (Zuul)
    2. After the gateway receives the request, it obtains the available services from the registry (Eureka)
    3. distributed to specific instances after load balancing by the Ribbon (feign integration)
    4. Communication between MicroServices via feign
    5. Hystrix (feign integration) is responsible for processing the service timeout fuse
    6. Spring Cloud config for unified management of service configurations
    7. Turbin the fuse information of the monitoring service
    8. Zipkin call information between monitoring services
    9. Spring Boot Admin monitors the operation status and properties of the service and other related information
Related address
      1. Registration Center Address: http://localhost:8881/
      2. Direct call to service address: http://localhost:8882/hi?name=6666
      3. Calling address via feign: http://localhost:8884/hi?name=6666
      4. Feign's Hystrix information: Http://localhost:8884/hystrix
      5. Call address via Zuul (config authentication): http://localhost:8885/feign/hi?name=6666&token=1234
      6. Turbine Information Address: Http://localhost:8886/turbine.stream
      7. Zipkin Information Address: http://localhost:9411/zipkin/
      8. Spring Cloud config Test address: Http://localhost:8888/eureka-client/dev
      9. Dynamic Refresh configuration (need to install rabbit MQ, send POST request): Http://localhost:8882/actuator/bus-refresh
      10. Spring Boot Admin Service address: http://localhost:8887

Spring Cloud Usage Sample

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.