Code Monkey home page Code Monkey logo

spring-cloud-demo's Introduction

spring-cloud 微服务示例

主要内容:

  1. 服务注册与发现(eureka-server)
  2. 配置中心(config-server)
  3. 服务熔断(hystrix)
  4. 微服务网关(包括:安全校验、灰度发布)-zuul

运行需知:

  1. 服务注册(register-center)为了模拟HA,本机启用多实例,需要在hosts文件中加入 127.0.0.1 localhost server1 server2 server3,同时idea/eclipse中run时,可指定不同的profile(比如:server1、server2)来分2个端口启动。
  2. service-consumer(服务消费者)及service-provider(服务提供者),为了演示灰度节点与正常节点的区分,也采用了多profile,分不同端口,在本机启动多实例。

调试启动顺序为:

  1. register-center(服务注册)
  2. config-server(配置服务)
  3. service-provider(服务提供者)
  4. service-consumer(服务消费者)
  5. service-gateway(微服务网关)

其它参考:

我的spring-cloud系列博客: http://www.cnblogs.com/yjmyzz/tag/spring-cloud/


by 菩提树下的杨过 @2017

spring-cloud-demo's People

Contributors

yjmyzz avatar

Watchers

James Cloos 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.