DEV Community

小猫先生
小猫先生

Posted on

2

微服务的反模式和陷阱

第一部分

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

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

2、超时反模式

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

3、共享反模式

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

4. 到达报告反模式

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

5、沙粒陷阱

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

第二部分

6、无因的开发者陷阱

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

7、随大流陷阱

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

8、其它架构模式

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

第三部分

9、静态契约陷阱

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

10、通信协议使用的陷阱

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

11、REST 陷阱

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up