I have an Android application that is currently using Volley
library to make network requests and show downloaded images with NetworkImageView
.
I would like to test Retrofit
's capabilities and since I need to run lots of requests (thousands) I'm a bit concerned about the parallel execution. Volley
handles parallel requests with the RequestQueue
that limits the concurrent running requests to four, while the other requests are enqueued waiting to be executed. In Retrofit
documentations I haven't found any way to handle the number of concurrent requests and I suspect that such details are left to the developer in this library.
Is this correct? If so, is there any android-oriented implementation/library available? Otherwise, what are the best practices to handle parallel requests?