On Wednesday, August 12, 2015 at 12:33:03 PM UTC-7, Jens Alfke wrote: > > > On Aug 10, 2015, at 6:11 PM, Brett Harrison <[email protected] > <javascript:>> wrote: > > The Task object is basically a Job for a thread pool. If I convert to > your API, it would be removed. > > > Not exactly sure what that means, but anyway it’s not required that we do > this identically — the API spec assumes things like notifications, async > calls or delegation will work differently between platforms. > > I’ve now decided that in Cocoa it would be better to have the download > method return an NSProgress object. This is more standardized and allows > the caller to cancel or pause the download. (It will make observing > progress a bit more complicated for the caller, though.) > > I plan to have the attachment puller point at a different URL that is a > CDN (the CDN will pull from the original sync gateway as needed). > > > Hm. That relates to another open issue, #78 > <https://github.com/couchbase/couchbase-lite-ios/issues/78>, although > only on the downloading side. I take it you’d be uploading attachments to > Sync Gateway as usual, just the downloads would be routed through the CDN? >
Exactly any uploads would go directly to the gateway. > > This would be a really minor change to my code (altering the base URL for > the CBLAttachmentDownloader) … it’s just a question of how to hook it into > the API. It could at least go in the CBLReplication’s options dictionary. > > —Jens > -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/8d40b68d-0b74-4307-8e7d-726bf3a175e8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
