Link to home
Start Free TrialLog in
Avatar of Acton Wang
Acton WangFlag for United States of America

asked on

best to send notification from the server

hi,

      I am trying to find some good way to do client side notification from the server side. The common framework such as pushlet, activemq etc, client side always uses a keep-live open connection. but if we have large number of connections from clients. I will have the problem in terms of scalability.
      probably the only way to be scalable is let client side ask and pull the notification. any existing framework along with java anybody knows?

thx
Acton
Avatar of mico20
mico20

You can perform a regular xmlhttp request from a setInterval function to poll the server every so milliseconds.
Avatar of Acton Wang

ASKER

sorry. this answer is too simple
Usually the simpler solutions are the most robust.
Unfortunately, I do not know of any client-server notification methods besides the two mentioned above: open connection and regular polling on timer.
You can of course try using UDP protocol with a java applet and a specialized service on the server, if this is complex enough a solution for you :)
it is push thing as well.

does anyone know some comet (push) solution in highly scalable environemtn? the reason is that server side connection number is limited and I can not imagine this kind of push solution is scalable.
ASKER CERTIFIED SOLUTION
Avatar of Acton Wang
Acton Wang
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
how is comet pattern different from either polling or keeping an open connection?
i was looking for detailed solution, not as some abstract outline.
no really helpful answer and found some solution by myself.