Websockets with ruby

4,052 views

Published on

Published in: Technology
0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
4,052
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
42
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide








































  • Websockets with ruby

    1. 1. WEBSOCKETS WITH RUBY by Stoyan Zhekov
    2. 2. CURRENT WEB ( HTTP ) Broken!
    3. 3. CURRENT WEB (HTTP) Request Response Close
    4. 4. Mailman
    5. 5. Real Time Bidirectional Full Duplex
    6. 6. SERVER TO SERVER PubSubHubBub XMPP
    7. 7. SERVER TO BROWSER Polling Long Polling Streaming
    8. 8. PUSH!
    9. 9. PUSH TO BROWSER Flash Socket XMPP (BOSH) WebSockets
    10. 10. “Comet is dead long live websockets”
    11. 11. “Comet is dead long live websockets” -- Joe Armstrong
    12. 12. THEORY
    13. 13. http://www.websockets.org/ WEBSOCKETS “WebSockets is a technology providing for bi-directional, full-duplex communications channels, over a single Transmission Control Protocol (TCP) socket, designed to be implemented in web browsers and web servers.” --wikipedia
    14. 14. http://dev.w3.org/html5/websockets/ http://bit.ly/9ioTAl
    15. 15. BROWSERS •Chrome 4.0+ • WebKit Nightly Builds • Firefox 4.0 (Nov 2010)?
    16. 16. EMULATION http://github.com/gimite/web-socket-js
    17. 17. WS:// WSS://
    18. 18. HANDSHAKE
    19. 19. DATA FRAME 0x00”...UTF-8...”xFF
    20. 20. SIMPLE
    21. 21. IMPLEMENTATION
    22. 22. Not Easy
    23. 23. SECURITY
    24. 24. PERFORMANCE
    25. 25. COST
    26. 26. HELLO WORLD
    27. 27. WHAT YOU WANT?
    28. 28. WHAT YOU WANT? • Chat • Stocks • Games • Real Time Notifications
    29. 29. GAMES http://code.google.com/p/quake2-gwt-port/
    30. 30. REAL TIME NOTIFY http://hummingbirdstats.com/
    31. 31. http://pusherapp.com/
    32. 32. EM-WEBSOCKET http://github.com/igrigorik/em-websocket
    33. 33. http://rainbows.rubyforge.org/sunshowers/
    34. 34. http://heroku.com/ http://mongohq.com/

    ×