imagine you blog & everybody is reading!

22
Imagine you blog & everybody is reading! on the architectural missmatch of polling feeds Photo by Jessica

Upload: cedric-huesler

Post on 27-May-2015

3.144 views

Category:

Technology


2 download

DESCRIPTION

On the architectural missmatch of polling feeds. Presentation on the BlogCamp 3 Zürich.

TRANSCRIPT

Page 1: Imagine you blog & everybody is reading!

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!

GET latest blog posts

list ofposts back

You Blog Readers

BASICS

Page 3: Imagine you blog & everybody is reading!

1 post8h per day (poll every 30min)40 people640 requests

BASICS

Page 4: Imagine you blog & everybody is reading!

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!

+ 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 7: Imagine you blog & everybody is reading!
Page 9: Imagine you blog & everybody is reading!

Francis Bates in 1899Ph

oto

by R

osa

Say

Page 10: Imagine you blog & everybody is reading!

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!

service to service service to client

Firewall

1st requestfrom client

Push

Push✕

Page 12: Imagine you blog & everybody is reading!

RSS Ping1. Ping

aka Pingback

Ping ServicesYour Blog

after publishing post

2. Polling3. Get Feed

Page 13: Imagine you blog & everybody is reading!
Page 15: Imagine you blog & everybody is reading!

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!

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!

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!

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!

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!

That’s it

Cédric HüslerCTO local.ch

Blog: keepthebyte.ch

Phot

o by

Tho

mas

Haw

k

Got it?