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

  • Cloud-Native Applications in Java
  • Ajay Mahajan Munish Kumar Gupta Shyam Sundar
  • 207字
  • 2021-06-24 19:07:21

API aggregation

Aggregation at the gates. This applies to mobile or third-party use cases that do not want to know the details of the aggregation and instead would want to expect one data structure over a single request. The API gateways are designed to do this aggregation and then expose a unified service to the client. The API gateways can also select to eliminate any data sections in the aggregate service if it is not required to be shown during content aggregation:

Benefits

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

  • The individual service details are abstracted from the client by the API gateway. Hence it gives the flexibility to change the services internally without affecting the client tier.
  • Better in bandwidth constrained scenarios where running parallel HTTP requests may not be a good idea.
  • Better in UI processing constrained scenarios where processing power might not be enough for concurrent page generation.

Trade-offs

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

  • Where there is sufficient bandwidth, the latency of this option is higher than the aggregation by the client. This is because the API gateway waits for all the content to be aggregated before sending the data out to the client.
主站蜘蛛池模板: 伊金霍洛旗| 井冈山市| 交口县| 馆陶县| 荥阳市| 黄陵县| 呼图壁县| 安宁市| 阜平县| 美姑县| 阜新市| 神木县| 额敏县| 洪洞县| 舒城县| 利津县| 红安县| 六枝特区| 彭山县| 姚安县| 宁陵县| 常宁市| 郯城县| 藁城市| 潼南县| 阿坝| 公主岭市| 万全县| 莱芜市| 滦平县| 蕉岭县| 牟定县| 新津县| 台安县| 东宁县| 连山| 诸暨市| 沧源| 安阳县| 大关县| 怀化市|