Wednesday 19th June, 2013
2:30pm to 3:15pm
Lately everyone loves pushing: you get push notifications on your iOS device, cloud to device messages on your Android device, and something about web sockets. Pushing seems natural. "Hey! I have some data for you, let me send it to you," says the pusher. Too bad it doesn't scale effectively. Pushing is expensive and hard. It cannot take advantage of any caching and needs to keep track of failures and retries. "Hey! I have some data for <%= @big_number %> of you, let me send it to all of you," says the pusher. "Oh, some of you didn't get it? Who? When should I try again? How many times should I try?"
Every time you want to push you can get away will polling cheaper and easier (almost). The WWW is built on polling. Your application will never need to scale to as big as the WWW. Let's see how Rails applications can use polling to scale effectively and what happens when you combine pushing and polling.
Sign in to add slides, notes or videos to this session