Ciobanu Razvan
Ciobanu Razvan

Reputation: 117

Android Firebase storage SDK maximum parallel uploads

I have to upload some hundreds of photos to Firebase Storage. All the images are 10-15KB. I followed the suggestions and sent them 10 by 10. The problem is that the SDK seem to work only with 2 parallel threads. It actually doesn't matter if I send 10 requests or 2, only 2 are active and the rest are queued.

Is that the expected behaviour for Storage SDK on Android? iOS SDK seems to be more permissive.

Upvotes: 0

Views: 246

Answers (2)

Ciobanu Razvan
Ciobanu Razvan

Reputation: 117

I modified the SDK according to my needs(increased concurrent threads limit) and used the SNAPSHOT.

Upvotes: 1

Doug Stevenson
Doug Stevenson

Reputation: 317760

That is the expected behavior.

On mobile connections, uploads don't complete any faster with a high level of parallelism. All the uploads will compete for the same limited bandwidth.

You can see how the SDK works, since it's open source. Feel free to modify it as you see fit, so you can see if your benchmarks are better. For feature requests, please contact Firebase support directly.

Upvotes: 0

Related Questions