background preloader

Connections

Facebook Twitter

Mobile apps and number of concurrent connections. HTTP RFC Spec 2616 Section 8.1.4 ( says A single-user client SHOULD NOT maintain more than 2 connections with any server or proxy. A proxy SHOULD use up to 2*N connections to another server or proxy, where N is the number of simultaneously active users. While this spec was written quite a long time ago, it’s still a spec and you as a client developer should respect. Most browsers till IE8 did not allow more than two concurrent connections to the same server. IE 8 changed the trend. Steve Sounders has an excellent write up on this here. Even with IE 8, Microsoft did limit the number of connections (to 6). In my opinion, an iOS client that acts a native client for your website should behave like a browser (minus the layout engine), adhering to every possible HTTP standard (Caching headers, Authorization headers, Keep-Alive and others).

Effect of Multiple Connections Making multiple HTTP requests concurrently hurts the performance. iOS Framework: Introducing MKNetworkKit. This article is available in Serbo-Croatian, Japanese and German. (Translations in Serbo-Croatian by Jovana Milutinovich, Japanese by @noradaiko and German by Jonas Pencke (@jonaspencke).) Translations in other languages are welcome! How awesome would it be if a networking framework automatically takes care of caching responses for you? How awesome would it be if a networking framework automatically remembers your operations when your client is offline? You favorite a tweet or mark a feed as read when you are offline and the Networking Framework performs all these operations when the device comes back online, all with no extra coding effort from you.

Introducing MKNetworkKit. What is MKNetworkKit? MKNetworkKit is a networking framework written in Objective-C that is seamless, block based, ARC ready and easy to use. Features Super light-weight The complete kit is just 2 major classes and some category methods. Single Shared Queue for your entire application. Auto queue sizing Auto caching Licensing. Javapns - Apple Push Notification Service Provider for Java. Notnoop/java-apns - GitHub. Maximum simultaneous NSURLConnections? ASIHTTPRequest Documentation - All-Seeing Interactive. ASIHTTPRequest is an easy to use wrapper around the CFNetwork API that makes some of the more tedious aspects of communicating with web servers easier. It is written in Objective-C and works in both Mac OS X and iPhone applications.

It is suitable performing basic HTTP requests and interacting with REST-based services (GET / POST / PUT / DELETE). The included ASIFormDataRequest subclass makes it easy to submit POST data and files using multipart/form-data. Features ASIHTTPRequest comes with a example applications for Mac and iPhone that demonstrate some of the features. ASIHTTPRequest is partly based on code from Apple’s ImageClient code samples, so if it doesn’t meet your needs, take a look at their CFNetwork examples for more. ASIHTTPRequest is compatible with Mac OS 10.5 or later, and iOS 3.0 or later. Download.macromedia.com/pub/labs/amf/amf3_spec_121207.pdf.

Opensource.adobe.com/svn/opensource/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/MessagePerformanceInfo.as. Opensource.adobe.com/svn/opensource/blazeds/tags/4.0.0/modules/core/src/flex/messaging/messages/MessagePerformanceUtils.java. Rs/SDURLCache - GitHub. Iphone - NSURLConnection leak. Iphone - Does -dataWithContentsOfURL: of NSData work in a background thread.