imagine you blog & everybody is reading!
DESCRIPTION
On the architectural missmatch of polling feeds. Presentation on the BlogCamp 3 Zürich.TRANSCRIPT
![Page 1: Imagine you blog & everybody is reading!](https://reader033.vdocument.in/reader033/viewer/2022052901/55654c00d8b42a902d8b4ffe/html5/thumbnails/1.jpg)
Imagine you blog & everybody is reading!
on the architectural missmatch of polling feeds
Phot
o by
Jess
ica
![Page 2: Imagine you blog & everybody is reading!](https://reader033.vdocument.in/reader033/viewer/2022052901/55654c00d8b42a902d8b4ffe/html5/thumbnails/2.jpg)
GET latest blog posts
list ofposts back
You Blog Readers
BASICS
![Page 3: Imagine you blog & everybody is reading!](https://reader033.vdocument.in/reader033/viewer/2022052901/55654c00d8b42a902d8b4ffe/html5/thumbnails/3.jpg)
1 post8h per day (poll every 30min)40 people640 requests
BASICS
![Page 4: Imagine you blog & everybody is reading!](https://reader033.vdocument.in/reader033/viewer/2022052901/55654c00d8b42a902d8b4ffe/html5/thumbnails/4.jpg)
Client
Web
are we th
ere yet?
distracted
no.
bored
are we th
ere yet?distracted
no.
bored
are we th
ere yet?
distractedno.
bored
are we th
ere yet?
distracted
no.
bored
?
no. ?
no. ?
no. ?
no.
DB
And that was ideal. Under real world circumstances its even worse. And both the consumer and the server are burning cycles waiting.
http://www.slideshare.net/rabble/beyond-rest-building-data-services-with-xmpp-pubsub
BASICS
![Page 5: Imagine you blog & everybody is reading!](https://reader033.vdocument.in/reader033/viewer/2022052901/55654c00d8b42a902d8b4ffe/html5/thumbnails/5.jpg)
+ Google Bot+ Technorati+ Bloglines+ slug.ch+ FriendFeed+ Facebook+ Plaxo+ Tumblr+ .... ~99%
24h polling for updates on your blog....
feed requests are a waste of bandwidth!
*
* my personal guess
BASICS
![Page 6: Imagine you blog & everybody is reading!](https://reader033.vdocument.in/reader033/viewer/2022052901/55654c00d8b42a902d8b4ffe/html5/thumbnails/6.jpg)
http://twitter.com/timoreilly/statuses/866400327
![Page 7: Imagine you blog & everybody is reading!](https://reader033.vdocument.in/reader033/viewer/2022052901/55654c00d8b42a902d8b4ffe/html5/thumbnails/7.jpg)
![Page 8: Imagine you blog & everybody is reading!](https://reader033.vdocument.in/reader033/viewer/2022052901/55654c00d8b42a902d8b4ffe/html5/thumbnails/8.jpg)
Phot
o by
Pie
rre
Poul
iqui
n
![Page 9: Imagine you blog & everybody is reading!](https://reader033.vdocument.in/reader033/viewer/2022052901/55654c00d8b42a902d8b4ffe/html5/thumbnails/9.jpg)
Francis Bates in 1899Ph
oto
by R
osa
Say
![Page 10: Imagine you blog & everybody is reading!](https://reader033.vdocument.in/reader033/viewer/2022052901/55654c00d8b42a902d8b4ffe/html5/thumbnails/10.jpg)
HTTP 304
RSS Ping
XMPP
Long-Polling
Comet
Reverse Ajax
Web Hooks
Push RSS
Phot
o by
Cel
ine
Nad
eau
GNIP
![Page 11: Imagine you blog & everybody is reading!](https://reader033.vdocument.in/reader033/viewer/2022052901/55654c00d8b42a902d8b4ffe/html5/thumbnails/11.jpg)
service to service service to client
Firewall
1st requestfrom client
Push
Push✕
![Page 12: Imagine you blog & everybody is reading!](https://reader033.vdocument.in/reader033/viewer/2022052901/55654c00d8b42a902d8b4ffe/html5/thumbnails/12.jpg)
RSS Ping1. Ping
aka Pingback
Ping ServicesYour Blog
after publishing post
2. Polling3. Get Feed
![Page 13: Imagine you blog & everybody is reading!](https://reader033.vdocument.in/reader033/viewer/2022052901/55654c00d8b42a902d8b4ffe/html5/thumbnails/13.jpg)
![Page 15: Imagine you blog & everybody is reading!](https://reader033.vdocument.in/reader033/viewer/2022052901/55654c00d8b42a902d8b4ffe/html5/thumbnails/15.jpg)
GNIPis PING backwards
Data Producers Data Consumers
Notify
2.Call-back
& Poll
API visit: http://gnipcentral.com
Notify
Notify
3. Get Feed ?
![Page 16: Imagine you blog & everybody is reading!](https://reader033.vdocument.in/reader033/viewer/2022052901/55654c00d8b42a902d8b4ffe/html5/thumbnails/16.jpg)
GNIPis PING backwards
Data Producers Data Consumers
Notify
2.Call-back
& Poll
API visit: http://gnipcentral.com
Notify
Notify
3. Get Feed ?
SUPAnnouncement yesterday from
Simple Update Protocol
![Page 18: Imagine you blog & everybody is reading!](https://reader033.vdocument.in/reader033/viewer/2022052901/55654c00d8b42a902d8b4ffe/html5/thumbnails/18.jpg)
Comet - Long-Polling- Server-sent events- Web sockets- Ajax Push
Chat
Post Message
Message pushed to Browser
![Page 19: Imagine you blog & everybody is reading!](https://reader033.vdocument.in/reader033/viewer/2022052901/55654c00d8b42a902d8b4ffe/html5/thumbnails/19.jpg)
I’m online & ready to chat
Mike & Pia are online
still here..
still here..
still here..
New message from Mike
Challenge: Scaling Web Server?
![Page 20: Imagine you blog & everybody is reading!](https://reader033.vdocument.in/reader033/viewer/2022052901/55654c00d8b42a902d8b4ffe/html5/thumbnails/20.jpg)
XMPPit’s XML and can use HTTP as transport
use it as universal command line?
✗use it for service-to-service com?
![Page 22: Imagine you blog & everybody is reading!](https://reader033.vdocument.in/reader033/viewer/2022052901/55654c00d8b42a902d8b4ffe/html5/thumbnails/22.jpg)
That’s it
Cédric HüslerCTO local.ch
Blog: keepthebyte.ch
Phot
o by
Tho
mas
Haw
k
Got it?