I am developing a REST API for my application.
With this API, I can do something like update company or person information using PUT companies/1 and PUT persons/2 , families/3 , etc.
I want to use this API for regular synchronization with other applications. This will require hundreds of thousands of REST API requests, most of which are such updates. Each request takes very little time, but the latency of each individual request is quite a lot of time.
Is there a way I could create a REST API that can combine multiple requests at once. I could easily think of simply executing PUT with an array of paths and formdata, but it looks like someone should have developed a nicer solution.
Is there a best practice for combining several different requests in a REST API into one request to avoid latency, or is there a better way to handle this situation at all?
source share