Your SlideShare is downloading. ×

Twitter and the Real-Time Web

2,349
views

Published on

I gave this presentation at the New York Time's, TimesOpen 2.0: The Real-Time Web evening.

I gave this presentation at the New York Time's, TimesOpen 2.0: The Real-Time Web evening.

Published in: Technology

1 Comment
5 Likes
Statistics
Notes
No Downloads
Views
Total Views
2,349
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
1
Likes
5
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. TimesOpen 2.0: The Real-Time Web
  • 2. Giving a @twitterapi talk at @timesopen’s “TimesOpen 2.0: The Real-Time Web” event. 2 Nov via Twitter for iPhone from The NewYork Times Building 620 Eight Avenue NewYork, NewYork View Tweets at this place
  • 3. Twitter is the nature of news.
  • 4. http://twitter.com/#!/highfours/status/1121908186
  • 5. http://twitter.com/#!/jkrums/status/1121915133
  • 6. http://twitter.com/#!/barackobama/status/992176676
  • 7. “Rudimentary communication among individuals in real time allows many to move together as one” - @biz
  • 8. April 10, 2008 4:33:23 PM One Word And it’s over April 11, 2008 1:27:26 PM
  • 9. January 2010 Haiti Chile February 2010
  • 10. http://twitter.com/#!/toptweets/status/12483108178
  • 11. http://twitter.com/#!/Emergency_In_SF/status/29440739442
  • 12. http://twitter.com/#!/i80chains/status/9726084734
  • 13. http://twitter.com/#!/remedyoakland/status/29002198672
  • 14. http://twitter.com/#!/AlbionsOven/status/10015063036
  • 15. How many Tweets are there?
  • 16. How many Tweets are there? 90M!
  • 17. 90M tweets per day 1000 tweets per second≈
  • 18. http://blog.hubspot.com/blog/tabid/6307/bid/6506/Visualizing-How-a-Link-Spreads-Through-the-Twitterverse.aspx
  • 19. How do they get out? 6B REST API calls per day 70,000 calls per second≈
  • 20. REST API Handle authentication Manage rate limiting All to say, “No new tweets. Try later.”
  • 21. What we want Deliver an immediate user experience Provide full fidelity data Create easy integrations Be efficient
  • 22. REST API XML/JSON API over HTTP Poll-based system / pseudo real-time hosebird Streaming API Long poll HTTP Near real-time delivery of Tweets
  • 23. Connecting to the stream curl -u UUU:PPP http://stream.twitter.com/1/ statuses/filter.json?track=ivoted Hold the socket open Get JSON objects, one per line Get them in real-time
  • 24. 0ms 100ms 200ms Latency
  • 25. #ivoted
  • 26. Questions? Follow me at twitter.com/raffi