BT
x Your opinion matters! Please fill in the InfoQ Survey about your reading habits!

Twitter Open Sources CocoaSPDY

by Abel Avram on Dec 20, 2013 |

Twitter has developed and open sourced CocoaSPDY, a SPDY framework for OS X (Cocoa) and iOS (Cocoa Touch) based on the implementation they previously contributed to Netty, updating in the same time their iOS application to use SPDY instead of plain HTTP. Twitter has noticed up to 30% decrease in communication latency, the improvement being more noticeable when an “user’s network conditions get worse.“

Twitter also emphasizes SPDY’s other benefits: multiplexing requests – the ability to send consecutive requests and receiving out-of-order responses in a single TCP session, pushing messages from the server to the client and compressing both the request and response headers.

One can include the SPDY framework into an project, using either the source code or the ARM or x86/64 binaries, and can make use of it in an application by simply enabling it with either of the following lines, no other code changes being necessary:

SPDYURLConnectionProtocol registerOrigin:@https://api.twitter.com:443];
configuration.protocolClasses = @[[SPDYURLSessionProtocol class]];

Server Push and Discretionary/Deferrable Request Scheduling are not working yet, Twitter planning to implement these features in the future.

SPDY was initially developed by Mike Belshe and extensively used by Google in Chrome across many of their services. Currently, SPDY represents the foundation of ongoing work on standardizing HTTP 2.0.

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Educational Content

General Feedback
Bugs
Advertising
Editorial
InfoQ.com and all content copyright © 2006-2014 C4Media Inc. InfoQ.com hosted at Contegix, the best ISP we've ever worked with.
Privacy policy
BT