Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Websockets with ruby

  • Login to see the comments

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/

×