I'm building android communication library for my project. I have several servers which I'm contacting using REST API so for my implementation I was wondering if anyone knows, if I contact same URL but different URIS, meaning I have different REST requests for the same host for each I'll have to use URL class which creates HTTPSUrlConnection interface, in it's end I WILL call disconnect(), the question is , how efficient it is to aggregate these kind of requests together? if there's not point I won't invest time in it, but if android knows to keep the connection open for a few more seconds to see if there are any more sockets opened for that address there's a lot of point in doing this.
Anyone?