官术网_书友最值得收藏!

Microservice aggregation

Aggregation at the business tier. In this approach, a microservice aggregates the responses from the various constituent microservices. This pattern is useful if there is any real-time business logic to be applied while aggregating data. For example, showing the total value of customer holdings across various businesses:

Benefits

The benefits of using the microservice aggregation pattern are as follows:

  • Finer control on the aggregation. Also, there is a possibility of incorporating the business logic based on aggregated data. Thus, offering richer content aggregation capabilities.
  • Lower dependency on API gateway capabilities.

Trade-offs

The trade-offs associated with the microservice aggregation pattern are as follows:

  • Lower latency and more code, as there is an additional hop introduced due to an additional step.
  • More chances of failure or making mistakes. Parallel aggregation from microservices will need sophisticated code such as reactive or call back mechanisms.
主站蜘蛛池模板: 宾川县| 永康市| 根河市| 武宁县| 广德县| 仁化县| 政和县| 江源县| 富阳市| 辉南县| 普宁市| 莆田市| 辛集市| 怀仁县| 桐梓县| 台山市| 临漳县| 徐闻县| 台南市| 兴业县| 和顺县| 临颍县| 军事| 获嘉县| 斗六市| 名山县| 泸定县| 融水| 宜兴市| 兖州市| 精河县| 乌拉特前旗| 杂多县| 乌鲁木齐县| 乐安县| 清远市| 赤壁市| 遵义县| 新邵县| 江安县| 娱乐|