GithubHelp home page GithubHelp logo

baker-learning-spring-cloud's Introduction

说明

  • learn-eureka-discovery-server、learn-eureka-discovery-server-slave:注册中心。两个项目除了ha.yml不一样其他都一样。
  • learn-eureka-discovery-client、learn-eureka-discovery-client-slave:服务提供。一模一样,主要为了模拟多个实例

如何启动

  • 配置hosts:127.0.0.1 discovery-server discovery-server-slave discovery-client ribbon-hystrix-client

单机

高可用(ribbon和或者feign选一种即可)

  • learn-eureka-discovery-server:ha.yml启动 http://localhost:5001/
  • learn-eureka-discovery-server-slave:ha.yml启动 http://localhost:5002/
  • learn-eureka-discovery-client:ha.yml启动
  • learn-eureka-discovery-client-slave:ha.yml启动
  • learn-ribbon-hystrix:ha.yml启动
  • learn-hystrix-dashboard:ha.yml启动:http://localhost:5009/hystrix
  • learn-gateway-zuul:ha.yml启动

模块

模块 说明 application:port
learn-eureka-discovery-server 注册中心(master) eureka-discovery-server:5001
learn-eureka-discovery-server-slave 注册中心(slave) eureka-discovery-server:5002
learn-eureka-discovery-client user-client(master) eureka-discovery-client:5003
learn-eureka-discovery-client-slave user-client(slave) eureka-discovery-client:5004
learn-ribbon ribbon负载均衡 ribbon-client:5005
learn-ribbon-hystrix ribbon负载均衡+熔断 ribbon-hystrix-client:5007
learn-feign feign负载均衡 feign-client:5006
learn-feign-hystrix feign负载均衡+熔断 feign-hystrix-client:5008
learn-hystrix-dashboard 服务监控 hystrix-dashboard:5009
learn-gateway-zuul gateway gateway-zuul-client:5010

一些注意事项和说明

  • eureka-client:依赖web!
  • spring cloud spring boot 版本有严格对应,新建项目建议在start.spring.io

baker-learning-spring-cloud's People

Contributors

baker-abc avatar

Watchers

 avatar  avatar

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.