Real time web

  • 2,668 views
Uploaded on

The talk I did at 2012 Ruby Conf China. Introduction to real time web, solutions and how to choose different solution for different site.

The talk I did at 2012 Ruby Conf China. Introduction to real time web, solutions and how to choose different solution for different site.

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
No Downloads

Views

Total Views
2,668
On Slideshare
0
From Embeds
0
Number of Embeds
3

Actions

Shares
Downloads
92
Comments
1
Likes
11

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. Nice to meet you! 叶玎玎 yedingding@gmail.com https://github.com/sishen @yedingding @yedingding http://weibo.com/presently
  • 2. https://pragmatic.ly
  • 3. Let’s Begin
  • 4. UX-driven evolution of Web
  • 5. What’s “Real Time”?
  • 6. Show Me!
  • 7. Instant Messaging
  • 8. Apple Push Notification
  • 9. Internet Game
  • 10. PersistentConnection
  • 11. Real Time in Web?
  • 12. Persistent Connection between Brower and Server
  • 13. But
  • 14. Based on HTTP Protocol Request - Response Protocol
  • 15. HTTP Protocol Stateless Protocol
  • 16. Solutions XHR Polling Long Polling HTTP Streaming Flash Socket WebSocket ….
  • 17. XHR Polling
  • 18. Long Polling
  • 19. HTTP Streaming
  • 20. Flash Socket
  • 21. WebSocket
  • 22. XHR LongPolling Polling Flash HTTP SockeStreaming t …… WebSocket
  • 23. How to Choose?
  • 24. Real Time Centric VS Real Time Supplemental
  • 25. Real Examples
  • 26. Pragmatic.ly
  • 27. Pragmatic.ly WebSocket XHR Polling Long Polling HTTP Streaming Flash Socket
  • 28. Integration Fast
  • 29. Work Fasthttp://www.devilslab.com/wp-content/uploads/2010/08/fast_snail_id86636_size350.jpg
  • 30. Light Weight
  • 31. SlangerOpen Source Pusher Server Good for Dev
  • 32. em-websocketEventMachine based WebSocket Server
  • 33. HipChat
  • 34. HipChat Long Polling XHR Polling HTTP Streaming Flash Socket WebSocket
  • 35. BOSHBidirectional-Streams Over Synchronous HTTP
  • 36. Easy to Scale
  • 37. Easy to Extend
  • 38. Works Everywherehttp://i.cmpnet.com/bmighty/images/slideshows/20090121/slide1A.jpg
  • 39. Jabber Clients
  • 40. RubyBOSH
  • 41. stropherubylibstrophe.js
  • 42. Twitter Web
  • 43. Real Time is sugar
  • 44. Twitter Web XHR Polling Long Polling HTTP Streaming Flash Socket WebSocket
  • 45. Acceptable Smart interval
  • 46. Save Resource
  • 47. Twitter Streaming API
  • 48. Twitter Streaming API HTTP Streaming XHR Polling Long Polling Flash Socket WebSocket
  • 49. Low Overhead
  • 50. Low Latency
  • 51. API Friendly
  • 52. Rainbow Thin
  • 53. Rack::Stream
  • 54. Weibo
  • 55. Weibo Web XHR Polling Long Polling HTTP Streaming Flash Socket WebSocket
  • 56. Weibo IM Long Polling XHR Polling HTTP Streaming Flash Socket WebSocket
  • 57. Bayeux Protocol
  • 58. Faye
  • 59. Thank You!