【Spring Cloud】分布式必学springcloud(一)——简介和看法

一、前言

      开篇之前,我想说,springcloud会完胜dubbo。

      小编以前做分布式是用的webservice、dubbo。最近的项目中,开始使用了springcloud,springcloud包含了很多的组件,这些组件是dubbo没有的,所以使用的过程中也是非常爽的。springcloud对配置管理,服务发现,断路器,智能路由,微代理,控制总线做了很多的工作,效果也非常好。

二、说说项目应用吧

      新的项目中用到了Spring Cloud Config、Spring Cloud Bus、Eureka、Hystrix、Zuul、Spring Cloud Data Flow、Spring Cloud Security、Ribbon、Feign、Spring Cloud Starters。

      Spring Cloud专注于提供良好的开箱即用经验的典型用例和可扩展性机制覆盖。

  • 分布式/版本化配置

  • 服务注册和发现

  • 路由

  • service – to – service调用

  • 负载均衡

  • 断路器

  • 分布式消息传递

三、springcloud的简介

      因为以前使用过Dubbo,可以说Dubbo的服务治理还是挺好的,当接触了springcloud后,就发现,Dubbo就是springcloud的部分功能。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.

      springcloud提供开发工具,以便快速的创建分布式系统(如:配置文件管理,服务发现,断路器,智能路由,微代理,消息总线,一次性token,全局锁)。分布式系统的协调导致了样板模式, 使用Spring Cloud开发人员可以快速地支持实现这些模式的服务和应用程序。他们将在任何分布式环境中运行良好,包括开发人员自己的笔记本电脑,裸机数据中心,以及Cloud Foundry等托管平台。

四、小结

      相信使用springcloud后,很多都会更加高内聚,低耦合。spring真是为大家提供了很好的平台,使用很方便。

    原文作者:Spring Cloud
    原文地址: https://blog.csdn.net/kisscatforever/article/details/79922918
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞