> On Jan 27, 2015, at 5:50 PM, Greg Robbins <[email protected]> wrote: > > 1. Should there be one session per host, or one session for all of an app’s > fetches, or should each session be used for some set of hosts?
Well, the old approach of using NSURLConnection is equivalent to having one global NSURLSession for all URL requests in your app. So at one extreme, you can use a single session. I think it comes down to whether some of your requests need different parameters like delegates or caching or something like that. (Or different threading!) If they do, having a separate session is a convenient way to do that. Otherwise, I'd stick with one session for efficiency. —Jens
_______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com This email sent to [email protected]
