API Gotchas


Author: Kimmy

API Gotchas

API Category

  1. Back-end for front-end
  2. Domain API
  3. System API
  4. Aggregation Layer

1. Version Hell

场景

原因

解决方案

2. Version Tree

场景

BFF或者Aggregator:

原因

解决方案

3. Schema Violation

场景

Consumer与Provider之间采用强Schema进行约束,任何一方都绝对依赖于另外一方。

解决方案

4. Exposed Domain Entity

场景

Provider将自身内部的领域对象整体暴露出去

解决方案

5. God service

场景

The service that was cross-layered and depended by most of other services.

解决方案

?

6. Circular Reference/Dependency

场景

Lower stream services have ex/implicit dependency for higher stream services.

解决方案

?

7. Schema Inference

场景

Services provide nothing but an endpoint, client must try to understand the schema and behaviour by combinating every possible inputs.

解决方案

?

创建时间:2017-11-15 最近更新时间:2024-07-26