Twitter and the Real-Time Web

2,411

Published on

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

Published in: Technology

Transcript of "Twitter and the Real-Time Web"

  1. 1. TimesOpen 2.0: The Real-Time Web
  2. 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. 3. Twitter is the nature of news.
  4. 4. http://twitter.com/#!/highfours/status/1121908186
  5. 5. http://twitter.com/#!/jkrums/status/1121915133
  6. 6. http://twitter.com/#!/barackobama/status/992176676
  7. 7. “Rudimentary communication among individuals in real time allows many to move together as one” - @biz
  8. 8. April 10, 2008 4:33:23 PM One Word And it’s over April 11, 2008 1:27:26 PM
  9. 9. January 2010 Haiti Chile February 2010
  10. 10. http://twitter.com/#!/toptweets/status/12483108178
  11. 11. http://twitter.com/#!/Emergency_In_SF/status/29440739442
  12. 12. http://twitter.com/#!/i80chains/status/9726084734
  13. 13. http://twitter.com/#!/remedyoakland/status/29002198672
  14. 14. http://twitter.com/#!/AlbionsOven/status/10015063036
  15. 15. How many Tweets are there?
  16. 16. How many Tweets are there? 90M!
  17. 17. 90M tweets per day 1000 tweets per second≈
  18. 18. http://blog.hubspot.com/blog/tabid/6307/bid/6506/Visualizing-How-a-Link-Spreads-Through-the-Twitterverse.aspx
  19. 19. How do they get out? 6B REST API calls per day 70,000 calls per second≈
  20. 20. REST API Handle authentication Manage rate limiting All to say, “No new tweets. Try later.”
  21. 21. What we want Deliver an immediate user experience Provide full fidelity data Create easy integrations Be efficient
  22. 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. 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. 24. 0ms 100ms 200ms Latency
  25. 25. #ivoted
  26. 26. Questions? Follow me at twitter.com/raffi

×