DEV Community

小猫先生
小猫先生

Posted on

2

微服务的反模式和陷阱

第一部分

1、数据驱动的迁移反模式

  • 太多的数据迁移
  • 功能分割优先,数据迁移最后

2、超时反模式

  • 使用超时
  • 使用断路器模式

3、共享反模式

  • 过多依赖
  • 共享代码的技术

4. 到达报告反模式

  • 微服务报告的问题
  • Asynchronous Event Pushing

5、沙粒陷阱

  • 分析服务的范围和功能
  • 分析数据库事务
  • 分析服务编排

第二部分

6、无因的开发者陷阱

  • 做出错误的决定
  • 了解业务驱动

7、随大流陷阱

  • 微服务的优点和缺点
  • 其他架构模型

8、其它架构模式

  • header 版本控制
  • Schema 版本控制

第三部分

9、静态契约陷阱

  • 延迟测量
  • 通信协议比较

10、通信协议使用的陷阱

  • 异步请求
  • 广播能力
  • 事务请求

11、REST 陷阱

Image of Datadog

Measure and Advance Your DevSecOps Maturity

In this white paper, we lay out a DevSecOps maturity model based on our experience helping thousands of organizations advance their DevSecOps practices. Learn the key competencies and practices across four distinct levels of maturity.

Get The White Paper

Top comments (0)