Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Twitter Streaming API #bcruhr3

Twitter Streaming API #bcruhr3

Timo Schilling

March 21, 2010
Tweet

More Decks by Timo Schilling

Other Decks in Technology

Transcript

  1. 20.03.2010
    Push it!
    Timo Schilling
    1

    View full-size slide

  2. Pullen
    ✤ Email
    ✤ RSS
    ✤ Twitter
    2

    View full-size slide

  3. Pushen
    ✤ Chat
    ✤ iPhone
    ✤ HTTP persistent connection
    3

    View full-size slide

  4. HTTP Persistent Connection
    ✤ HTTP 1.1 keep-alive
    ✤ Unterstützung
    ✤ Client
    ✤ Server
    4

    View full-size slide

  5. Multiple
    Connections
    ✤ Verbindungsaufbau
    ✤ Datenübertragung
    ✤ Verbindungstrennung
    5

    View full-size slide

  6. Persistent
    Connection
    ✤ Verbindungsaufbau
    ✤ Datenübertragung
    ✤ ...
    ✤ Verbindungstrennung
    6

    View full-size slide

  7. Vergleich
    Multiple vs. Persistent
    7

    View full-size slide

  8. Vorteile
    ✤ Firewall
    ✤ weniger Server last
    ✤ weniger Latenz
    ✤ HTTP Pipelining
    ✤ Daten Pushen

    (ohne Interval Pullen)
    8

    View full-size slide

  9. ✤ XMPP Protokoll
    ✤ Jabber
    ✤ Google Talk / Wave
    ✤ Twitter Streaming API
    ✤ TwitterJunkie
    ✤ LiveWall
    Implementierungen

    View full-size slide

  10. Twitter Streaming API
    ✤ Einführung April 2009
    ✤ Funktionen wie die REST
    API
    ✤ Echtzeit

    View full-size slide

  11. Twitter Streaming API
    Aufbau
    ✤ API Endpoint

    http://stream.twitter.com/1/
    ✤ Authentifizierung
    ✤ Beispiel
    ✤ $ curl http://stream.twitter.com/1/statuses/sample.json -u
    NAME
    ✤ Response JSON


    View full-size slide

  12. Twitter Junkie
    ✤ Open Source
    ✤ Cocoa / Objective-C
    ✤ Growl
    ✤ http://bit.ly/TwitterJunkie
    12

    View full-size slide