batch http requests

Shay Tsadok picture Shay Tsadok · Jun 17, 2011 · Viewed 23.3k times · Source

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 implementation for performance reasons. This kind of mechanism can reduce dramatically the number of round trips that the client needs to perform to consume the API.

Thanks in advance,

Shay

Answer

fumanchu picture fumanchu · Jun 17, 2011

Define a new resource that contains the data the client wants. See http://roy.gbiv.com/untangled/2008/rest-apis-must-be-hypertext-driven#comment-743