SpringBoot时代背景

微服务

James Lewis Martin Fowler 2014年提出微服务完整概念,https://martinfowler.com/microservices/

In short, the microservice architectural style 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.
-- James Lewis and Martin Fowler (2014)

简而言之,微服务体系结构风格是一种将单个应用程序开发为一组小服务的方法,每个小服务都在自己的进程中运行,并使用轻量级机制(通常是HTTP资源API)进行通信。这些服务是围绕业务功能构建的,可以通过完全自动化的部署机制独立部署。这些服务的集中管理是最低限度的,可以用不同的编程语言编写,并使用不同的数据存储技术。
——詹姆斯·刘易斯和马丁·福勒(2014)

  • 微服务是一种架构风格

  • 一个应用拆分为一组小型服务

  • 每个服务运行在自己的进程内,也就是可独立部署和升级

  • 服务之间使用轻量级HTTP交互

  • 服务围绕业务功能拆分

  • 可以由全自动部署机制独立部署

  • 去中心化,服务自治,服务可以使用不同的语言,不同的存储技术

分布式

分布式的困难

  • 远程调用

  • 服务发现

  • 负载均衡

  • 服务容错

  • 配置管理

  • 服务监控

  • 链路追踪

  • 日志管理

  • 任务调度

  • ......

分布式解决

  • SpringBoot+SpringCloud

云原生

  原生应用如何上云,Cloud Native

上云的困难

  • 服务自愈
  • 弹性伸缩
  • 自动化部署
  • 灰度发布
  • 流量治理
  • ......
posted @ 2021-07-31 21:15  🍓🍓鲁阿艳🐾🐾  阅读(106)  评论(1编辑  收藏  举报