cancel
Showing results for 
Search instead for 
Did you mean: 

handle multiple requests concurrently within a batch request

terry_huang
Advisor
Advisor
0 Kudos

As we know that $batch request can contain multiple requests in the payload, and the service handler will handle the request one by one. If I need to add some logic for each read entity event. How can I make those handler process execute in parallel.

View Entire Topic
martinstenzig
Contributor
0 Kudos

As $batch is intended to run sequentially, I would assume the only way to do that is to create an additional endpoint (i.e. action) that you connect with a custom implementation.

terry_huang
Advisor
Advisor
0 Kudos
Hi Martin, oh, that is too complicated. Is there no configuration to turn on the parallel process to handle the $batch request?
terry_huang
Advisor
Advisor
0 Kudos
Since I checked the $batch request handling mechanism, it can be processed in parallel. So I expect CAP can also handle it in the same way. especially more than 5 GETs request are in one $batch request.