12. Polling
Benefits 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
13.
14. Long Polling
Benefits 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
15.
16. Server-Sent Events
Benefits Drawbacks
• True real-time • Less reliable
(broken connections)
• Rich JavaScript API • One-way communication
(client server)
• Universal browser support…
except
17.
18. WebSockets
Benefits 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
Editor's Notes
Real-time data = always connected; lots of time sitting and waiting; data delivered as it is generated