web applications - Should I use pull (AJAX) or push (WebSocket) to scale for large amount of users? -


i need web app scale 10,000 users. need implement functionality notifies user events, example, job submitted has finished, have new suggestions optimize , on. i'm thinking of 2 implementation strategies:

(pull) every minute send ajax request server ask new notifications if there any

(push) use websocket , notify user when there new notification

which 1 recommended?

details web app:

the backend language i'm using java running on tomcat 6 (yes, saw tomcat 8 begins support websocket might end having upgrade).

the application single-page web app. notification feature not necessary real-time, i'm concerned option more scalable.

requests dealt via ajax.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -