Polling: It's Good Enough for the WWW & It's Good Enough for You

*
Accepted Session
Short Form
Intermediate
Scheduled: Wednesday, June 19, 2013 from 2:30 – 3:15pm in B204

Excerpt

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.

Description

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 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.

Speaking experience

I have never given this talk before.

Speaker