Giter Site home page Giter Site logo

springcloudcomplete's Introduction

##30分钟快速搭建springcloud分布式基础架构

该示例包含了
配置管理、服务注册与发现、断路器、路由、负载均衡等,适合于快速搭建微服务整体框架,并易于扩展。

整体结构如下

git配置文件仓库configserver...
通过负载均衡为以下服务提供配置文件

                  客户--->   负载均衡服务器
                                  | 
                             zuulserver...                                     ---- eurekaserver...  
                                  |                                                /   /
                sericefeign1...   sericefeign2...                              ---/   /
                                  |                                                  /
   eurekaclient1...  eurekaclient2...    eurekaclient3...                      -----/

说明如下
configserver用于提供统一配置参数服务于zuulserver、sericefeign、eurekaclient1和eurekaserver应用。
eurekaserver提供服务注册与发现,服务于zuulserver、sericefeign、eurekaclient。
zuulserver主要功能是路由转发和过滤器。路由功能:比如/api/xx1转发到到xx1服务,/api/xx2转发到到xx2服务。
sericefeign是核心应用服务器,通过Feign去消费服务,Feign默认集成了Ribbon,并和Eureka结合,默认实现了消费负载均衡效果。
eurekaclient典型的微服务应用。

各项目在本地运行起来后可以输入http://localhost:10001/api-1/hi?name=Greatest
试试,修改eurekaclient的port并新开启一个服务,重新多使用几次链接,看看效果。

##参考链接如下:
http://spring.io/guides/gs/service-registration-and-discovery/
http://blog.csdn.net/forezp/article/details/70148833
http://cloud.spring.io/spring-cloud-config/single/spring-cloud-config.html
https://github.com/spring-cloud/spring-cloud-config
https://github.com/spring-projects/spring-boot

springcloudcomplete's People

Watchers

haoht 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.