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

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.
主站蜘蛛池模板: 留坝县| 灌阳县| 栾川县| 剑阁县| 郁南县| 洪泽县| 望谟县| 宣城市| 从江县| 铜鼓县| 长武县| 耿马| 濮阳县| 三台县| 高清| 湘潭市| 化德县| 宜阳县| 崇明县| 印江| 安徽省| 潢川县| 犍为县| 周口市| 上饶县| 罗田县| 旺苍县| 五常市| 双流县| 长海县| 吴忠市| 增城市| 临漳县| 沙田区| 丘北县| 莆田市| 五台县| 普安县| 和林格尔县| 铁岭县| 会同县|