Real time web applications

525 views

Published on

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

  • Be the first to like this

No Downloads
Views
Total views
525
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Real-time data = always connected; lots of time sitting and waiting; data delivered as it is generated
  • Real time web applications

    1. 1. Developing Real-Time and Asynchronous Web ApplicationsJess ChadwickArchitect / RIA Specialistweblogs.asp.net/jesschadwickjesschadwick@gmail.com
    2. 2. Gratuitous Plug $$$ Buy My Books! $$$ Now with 100% more Awesome! Gluten Free!
    3. 3. The Real-Time Web• Information as it happens• Always Connected
    4. 4. Why Should I Care?• User Interaction, aka “Social Networking”• News
    5. 5. The Web Isn’t Real-Time!
    6. 6. Real-Time Web 1,000’s of users connected at once
    7. 7. The Traditional WebOne user at a time
    8. 8. PollingBenefits Drawbacks• Takes advantage of how the • Wasteful – requests occur web really works regardless of data• Reliable • Drains server and network resources• Universal browser support • Doesn’t scale
    9. 9. Long PollingBenefits Drawbacks• Uses “standard web • Less reliable – frequent techniques” broken connections• Less wasteful – fewer requests • Based on request-response than “regular” polling interaction (might be some delay between requests)• Universal browser support
    10. 10. Server-Sent EventsBenefits Drawbacks• True real-time • Less reliable (broken connections)• Rich JavaScript API • One-way communication (client  server)• Universal browser support… except
    11. 11. WebSocketsBenefits Drawbacks• True real-time • Emerging standard• True bi-directional • Doesn’t use “standard web communication techniques”• Rich JavaScript API • Less reliable (broken connections)• Good browser support… except and Opera

    ×