BT

New Early adopter or innovator? InfoQ has been working on some new features for you. Learn more

Twitter Open Sources CocoaSPDY

| by Abel Avram on Dec 20, 2013. Estimated reading time: 1 minute |

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.

Rate this Article

Adoption Stage
Style

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

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and dont miss out on content that matters to you

BT