rafamel/rxdb-utils

[Question] Does replication use a single HTTP connection for all synced collections?

HZSamir opened this issue · 0 comments

Hello,
This is not an issue per se, but rather a limitation I wanted to ask about.
I am using RxDB in a React Native project. I have a large number collections that need to be synced. The thing is however is that Android limits the maximum number of connections to the same host to 5, meaning if I try to sync more than 4 collections all sync fail silently while fetch requests fail with a timeout. Going down to 4 synced collections and it works again.
I had thought that RxDB-utils replication, given that it uses a single remote for syncing would only use a single HTTP connection for everything, but it turns out that it doesn't and that too fails.
Given that: Is there some way to limit the number of live HTTP connections rxdb-utils uses so that I don't run into this issue on Android?
I have been stuck on this issue for the past week now. The only solution I can see now is merging some of my collections so that ultimately have only 4, but I am leaving that as the absolute last solution.

If you have any tips or avenue that I can take to solve this, please, let me know.
Thank you.