I am trying to implement Batch requests in iOS where several API calls are aggregated into a single HTTP request . As there is a requirement where I have to make a multiple requests and wait till all of them are done and then proceed, I checked and found that Google has ClassRoom API which supports the batch requests. Is there a way it can be achieved in iOS. I am thinking of implementing it using Operation Queues and URLSession. Is this the right approach? Or do suggest on what can be done to achieve.
1
-
1You should have a look at using RxSwift. They have something to handle aggregating network requests, seems to fit your issue perfectly. If you want to do this without a library you should check out this on SOHJDavies– HJDavies2019-10-08 11:34:11 +00:00Commented Oct 8, 2019 at 11:34
Add a comment
|