diff --git a/content/technical/2013/01/speed-up-slow-ios-downloads-with-proxy.html b/content/technical/2013/01/speed-up-slow-ios-downloads-with-proxy.html index d7c4871..12cb814 100644 --- a/content/technical/2013/01/speed-up-slow-ios-downloads-with-proxy.html +++ b/content/technical/2013/01/speed-up-slow-ios-downloads-with-proxy.html @@ -1,12 +1,13 @@ --- title: Speed Up Slow Downloads on iOS with a Proxy or CDN -extra: How to speed up downloads on iOS. +extra: Using a proxy or CDN can dramatically improve download speeds on an iOS device. kind: article section: technical created_at: 2013-01-13 12:39:00 keywords: - ios - proxy +- slow - download - podcast - squid @@ -14,71 +15,63 @@ keywords: - cdn --- -Whilst developing the Radiopaedia iOS app I ran into the problem of very slow -download speeds within the app. The app has packs of content avaiable for -purchase. The download speed was fine in the simulator but on the device it -was painfully slow. Profiling the code didn't reveal any issues either. +Whilst developing the [Radiopaedia iOS app][radiopaedia-app] I ran +into the problem of very slow download speeds within the app. The app +has packs of content available for purchase and download. The download +speed was fine in the simulator but on the device it was painfully +slow1. Both the Mac running the simulator and device were +connected to the same Wi-Fi network. Profiling the code didn't reveal +any issues either. -Some searching revealed people compaining about YouTube videos downloading -faster over 3G than Wi-Fi. There were a number of theories and proposed fixes -for this including: +[radiopaedia-app]: http://radiopaedia.org/articles/radiopaedia-ios-radiology-app - * YouTube was sending higher bitrate video when on Wi-Fi - * Checking Wi-Fi access point settings - * Set access point to 802.11b and it goes faster +Some searching revealed people complaining about YouTube videos +downloading faster over 3G than Wi-Fi. There were a number of theories +and proposed fixes, including [people seeing faster rates when +downgrading their access point to 802.11b][80211b]2 but I +found one particular article (that I can no longer find) that said the +power management in the iOS Wi-Fi stack interfered with download speeds +when communicating to a high latency destination over a high speed Wi-Fi +connection. For example YouTube servers in the US from AU3. -At the time I read something that I can no longer find that said that the -iOS Wi-Fi stack has problems when it has a low latency Wi-Fi -connection that is communicating to a comparatively high latency -destination, for example YouTube servers in the US from AU (it -appears there's YouTube end-points in AU these days). From memory I think the -article cited power management under these circumstance as the issue. Howver -since I can't find the original article I might be making that up. +[80211b]: http://web.archive.org/web/20120511020134/http://qelix.com/blog/2008/08/31/get-better-wifi-speeds-on-iphone-3g -With this in mind I tested hosting the content packs on an Australian server, -instead of in Amazon S3. This showed a huge improvement in download speed. At -the time Amazon's CloudFront CDN did not have an Australian presence so we -switched to hosting the packs on RackSpace's CloudFiles, which uses the much -more extensive Akamai CDN and ensured that users of the app would have the -best possible download speeds. +With this in mind I tested hosting the content packs on an Australian +server, instead of in Amazon S3 accessed via CloudFront. This showed a huge +improvement in download speed. At the time CloudFront didn't +have an Australian presence so we switched to hosting the packs on +RackSpace's CloudFiles, which uses the much more extensive Akamai CDN +and ensured that users of the app would have the best possible download +speeds no matter where they were.