~/talk

Comet, Ajax, web browsers limitations and web apps performance factors

Talkat JDD 2012 · 2012-10-25..10-26· [web-platform, web-performance]
links:none on file
slides:none on file

A proof‑of‑concept shows request/response polling hits ~180 ms latency and cannot meet a 200 ms update SLA for 5,000 users; switching to long‑polling drops perceived latency to 55 ms but still wastes HTTP overhead and hits browser same‑origin limits. Running thousands of streaming connections exhausts default Tomcat threads and JVM memory (socket buffers ~64 KB/client causing permgen OOM around 4,000 clients), so move to Tomcat NIO and use libraries like Atmosphere or CometD; consider iframe/XHR streaming, SSE or WebSockets tradeoffs (browser support, text encoding, proxies).

AI-written summary · about

  1. 0:00Comet and web app challenges
  2. 5:20Gaming platform latency needs
  3. 8:17Request-response failed 200ms test
  4. 15:08Long-polling reduces signal latency
  5. 20:09Long-polling pros and cons
  6. 23:44Bypassing same-origin policy
  7. 27:17Streaming transports for Comet
  8. 33:04Iframe streaming risks
  9. 35:18XHR streaming benefits
  10. 37:29Server-Sent Events streaming
  11. 40:27WebSockets HTML5 alternatives
  12. 41:49Tomcat server bottlenecks
  13. 45:47JVM memory exhaustion
  14. 47:11Socket buffer OS costs
  15. 48:14Switching to NIO
  16. 49:21Comet libraries
  17. 50:48Library internals limits
  18. 52:17Closing remarks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.