java - HTML Web Application Notification System -


i'm using play framework 2.3 (java) , mysql.

i'm building notification system reads "notifications" table in mysql.

i've tried using ajax polling request sent asynchronously every 30 seconds, table read , if new notifications exist, sent via json client. however, performance concerning, many concurrent users.

what's best way build such system? there particular java libraries work this?

thanks in advance.

i see read fast, you're using play framework, don't know. quick search reveals has websocket capabilities:

http://www.playframework.com/documentation/2.3.x/javawebsockets

---- old answer below ----

if you're using jee7, why not try use websockets? limit application 'newer' browsers, supporting websockets, improve performance, since connection bi-directional , suffers less overhead.

more information on subject can found here:

http://docs.oracle.com/javaee/7/tutorial/doc/websocket.htm

i've found following example useful:

http://mgreau.com/posts/2013/11/11/javaee7-websocket-angularjs-wildfly.html


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -