batch http requests

后端 未结 7 1908
[愿得一人]
[愿得一人] 2021-02-01 06:31

Does anyone know a standard way to batch http requests? Meaning - sending multiple http atomic requests in one round trip?

We need such mechanism in our REST API implem

7条回答
  •  余生分开走
    2021-02-01 07:16

    That's a problem with REST. They are at entity level. The REST idea is to have each URL uniquely identify a resource. Of course you can introduce aggregated resource. For ex, www.yoursite.com/customerA?include=Orders,Faults,Incidents This returns the XML for CustomerA but also returns the Orders, faults, Incidents of the customer as embedded collection.

提交回复
热议问题