The Force.com REST API has seen incredible adoption since it became generally available just two releases ago in Spring ’11, and the Streaming API, while still a pilot feature, looks set to follow the same curve. There are enhancements and tweaks to both in Winter ’12 – here are the details…
As Sandeep mentioned the other day, while the REST API has supported upload of binary data since its inception, the maximum blob size has been limited to 50 MB (after base64 encoding). Winter ’12 brings the ability to upload blobs of up to 500 MB via multipart messages. The multipart syntax is quite straightforward, and familiar to anyone who has looked at the raw source of email messages:
See the pre-release documentation for full details.
Turning to the Streaming API, the Winter ’12 iteration of the pilot brings some changes. One important change for anyone who has been working with Streaming in Summer ’11 is that the session token is now sent as an OAuth token in the HTTP Authorization header, rather than as a cookie.
Another key change in Winter ’12 is that subscribing applications must prefix the PushTopic name with
The final significant change in Winter ’12 is that session timeouts are now restarted with every operation on the connection, rather than sessions having a maximum duration, regardless of activity. Again, full details can be found in the pre-release documentation.
One aspect of the Streaming API that remains the same in Winter ’12 is that it is still in limited pilot. If you want to get to grips with Streaming on Force.com, head on over to the Streaming API page and get with the program!