Please enable JavaScript.
Coggle requires JavaScript to display documents.
Microservices - Coggle Diagram
Microservices
定义 :pencil2: An architectural style that structures an application as a collection of loosely coupled services.
autonomous 自主的 :pencil2:
deployed as isolated service
avoid the perils of tight coupling
separate entity
change independently of each other
Services expose an API and other services communicate with it via those APIs
Benefits :star:
Resiliency 柔韧性
Scaling 扩展性
Technology Heterogeneity 多种技术
Ease of Deployment 部署独立
Composability可组合性
Optimizing for Replaceability 易更换
What Makes a Good Service :question:
Loose Coupling 松耦合
High Cohesion 高内置
Integration :red_flag:
Synchronous Versus Asynchronous
Remote Procedure Calls
Shared Database :question: NO :!:
REST
Reactive Design
Message Queues
Drawbacks :explode:
network latency
message formats
Services can be too small
fault tolerance