I was talking to a developer about different apis for create, update and delete and he was saying that it was better to have a single batch request to server to do operations like create, update and delete than to have multiple requests for each operation because in case of multiple continuous request, the server will have to handle these many requests and it will increase the load on the server. I also assumed that instead of batching updates to DB it will have to make multiple updates.
Say I have a spreadsheet kind of application. In each row, I have multiple cells which I can edit. One way to persist these changes is to send an update request to server on each cell update. Another option is to debounce all the updates for say 10 seconds.
I can also create 10 rows, update a row and delete 2 other rows. I am trying to understand the differences and tradeoffs of these two types of request
I have been trying to search and understand the performance effects between these two approaches and have been having trouble to find such. Will these many requests have significant effect on performance? Can someone please explain this?