Hi,

Say I have 10 000 users connected to my server. Say one user executes an
action, gain some points for it and say I want to push a visual element
update to every connected user to notify them. How should I do it?

Right now I use a pattern similar to what can be found in the Chatanooga
demo (I store a "pointer" of every connected user app data in a protected
hashmap. When one user gain some points, I run over every app data element
present in the hashmap and execute some code on it; a visual update).

It works well for a couple of users but I am afraid it wont scale to many
connected users... because from what I understand, its the user's thread,
gaining some points, that push/execute the update to everyone. What if many
of my 10 000 users have real bad internet connection? Will the user making
the push hang while its thread try to update everyone?

Is there a way to pass that push execution to every users own thread? If
not, what would be a proper way to do?

Is it possible for a user thread doing periodic stuff? How?
Is it possible to have a server thread doing periodic stuff? How?

Thank you,

Olivier
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list

Reply via email to