Re:Microsoft REST API Guidelines
by yxhuvud on Saturday November 23, 2019 @02:26AM
(#21612919)
Have you ever heard the concept of the common antipattern of n+1 queries that the back-end developers try to avoid? What you are suggesting would create that pattern on the front-end too.
[ Parent
| on HN ]
Yes, I understand the concept. I totally get that certain situations call for batching operations, including things that need to work transactional.
I think though that most operations don't need this. It's not an optimization I would blindly add to any operation, unless there's a specific case that warrants it.
I don't think that this is an anti-pattern. Most APIs do '1 thing at a time'.
Re:Microsoft REST API Guidelines
by felixfbecker on Saturday November 23, 2019 @05:40AM
(#21613460)
The backend can batch deletes made in the same timeframe in the same HTTP/2 session, like how you can batch queries with Facebook Dataloader in GraphQL APIs to avoid the n+1 query problem.