springcloud入门-什么是springcloud

1.单体应用架构存在的问题

一个归档包(例如war)包含所有功能的应用程序,通常称为单体应用。

相信很多项目都是从单体应用开始的,单体应用比较容易部署和测试,项目的初期,项目可以很好的运行,然而,随着需求的不断增加,越来越多的人加入到开发团队,代码库也在飞速的膨胀,慢慢的单体应用变得越来越臃肿,可维护性,灵活性逐渐降低,维护的成本越来越高,以下列举单体架构中存在的问题:

  • 复杂性高:定时炸弹
  • 技术债务:no broken don't fix
  • 可靠性差:单个bug,导致整个系统瘫痪
  • 阻碍技术创新

2.架构的演变

3.什么是微服务

the microservice architectural style [1] is an approach to developing a single application as a suite of small services, each running in its own process and communicating with lightweight mechanisms, often an HTTP resource API. These services are built around business capabilities and independently deployable by fully automated deployment machinery. There is a bare minimum of centralized management of these services, which may be written in different programming languages and use different data storage technologies.

  • 由一系列微小的服务组成
  • 每个服务独立运行在自己的进程中
  • 独立部署
  • 基于分布式的管理

官网链接https://www.martinfowler.com/articles/microservices.html

4.微服务的解决方案

5.什么是springcloud

Spring Cloud是一个含概多个子项目的开发工具集,集合了众多的开源框架,他利用了Spring Boot开发的便利性实现了很多功能,如服务注册,服务注册发现,负载均衡等.Spring Cloud在整合过程中主要是针对Netflix(耐非)开源组件的封装.

NetFlix 是美国的一个在线视频网站,微服务业的翘楚,他是公认的大规模生产级微服务的杰出实践者,NetFlix的开源组件已经在他大规模分布式微服务环境中经过多年的生产实战验证,因此spring cloud中很多组件都是基于NetFlix组件的封装

Spring Cloud的出现真正的简化了分布式架构的开发

6.springcloud的特点

  • 服务注册和发现
  • 路由
  • service - to - service调用
  • 负载均衡
  • 断路器

7.Spring Cloud 的服务架构图

猜你喜欢

转载自www.cnblogs.com/mzc1997/p/10251825.html