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

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.
主站蜘蛛池模板: 尚志市| 曲周县| 卢龙县| 伊宁市| 宜君县| 阜南县| 且末县| 平阳县| 天峨县| 彰化县| 扬中市| 息烽县| 股票| 凌海市| 抚顺县| 建瓯市| 醴陵市| 乐山市| 九寨沟县| 原平市| 神池县| 呼伦贝尔市| 西贡区| 永和县| 仪征市| 克山县| 瓦房店市| 峡江县| 政和县| 微山县| 方山县| 资阳市| 新安县| 昌图县| 儋州市| 大同县| 余江县| 罗城| 县级市| 静海县| 凤冈县|