Microservices Architecture

微服务定义

微服务定义(⼀)

Martin Fowler

  • ⼀种架构⻛格,将单体应⽤划分成⼀组⼩的服务,服务之间相互协作,实现业务功能

  • 每个服务运⾏在独⽴的进程中,服务间采⽤轻量级的通信机制协作(通常是HTTP/ JSON)

  • 每个服务围绕业务能⼒进⾏构建,并且能够通过⾃动化机制独⽴地部署

  • 很少有集中式的服务管理,每个服务可以使⽤不同的语⾔开发,使⽤不同的存储技术

微服务定义(⼆)

Adrian Cockcroft

  • Loosely coupled service oriented architecture with bounded context 基于有界上下⽂的,松散耦合的⾯向服务的架构

微服务的适⽤性

Source: 杨波 微服务架构 pdf

微服务的利和弊

康威定律 Conway's law

Organizations which design systems … are constrained to produce designs which are copies of the communication structures of these organizations.

设计系统的组织,其产⽣的架构设计等价于组织间的沟通结构

Microservice Pattern Language

https://microservices.io/i/MicroservicePatternLanguage.pdf

Reference

https://microservices.io/

https://www.martinfowler.com/articles/microservices.html

https://microservices.io/i/MicroservicePatternLanguage.pdf

Last updated