SpringCloud 官方介绍:
Spring Cloud provides tools for developers to quickly build some of the common patterns in distributed systems (e.g. configuration management, service discovery, circuit breakers, intelligent routing, micro-proxy, control bus, one-time tokens, global locks, leadership election, distributed sessions, cluster state). Coordination of distributed systems leads to boiler plate patterns, and using Spring Cloud developers can quickly stand up services and applications that implement those patterns. They will work well in any distributed environment, including the developer's own laptop, bare metal data centres, and managed platforms such as Cloud Foundry.
个人理解:
Spring Cloud是一系列框架的有序集合。它利用Spring Boot的开发便利性巧妙地简化了分布式系统基础设施的开发,如服务发现注册、配置中心、消息总线、负载均衡、断路器、数据监控等,都可以用Spring Boot的开发风格做到一键启动和部署。Spring并没有重复制造轮子,它只是将目前各家公司开发的比较成熟、经得起实际考验的服务框架组合起来,通过Spring Boot风格进行再封装屏蔽掉了复杂的配置和实现原理,最终给开发者留出了一套简单易懂、易部署和易维护的分布式系统开发工具包。
中文文档:https://springcloud.cc/
官方文档:http://projects.spring.io/spring-cloud/
SpringCloud架构图
SpringCloud核心组件
1. Zuul Api网关
客户端请求统一到达网关,网关进行请求分发。
2.Eureka注册中心
服务提供者的注册与发现中心
3.Ribbon客户端负载均衡
请求负载均衡算法。
4.Feign微服务之间相互调用
微服务之间调用
5.Hystrix负责处理服务超时熔断
服务间超时熔断等。
6.配置中心分布式配置
统一配置中心。