What is a suitable method for multiple clients to be aware of each other’s existence and activity, other than a database?
Let’s say a web app. needs to perform an activity, but this activity must only be run by ONE client.
So, on start-up, my web app. would need to check whether this activity is already being run by another client or not, and if not – run it, and if so – don’t run it (because it’s already being run).
How would the app. flag to other clients that the activity is being run?
How would each app. client check this flag?
The flag would obviously need to reside on the server, but my desktop-orientated brain can’t fathom how this is done with a web app.
Any static variable is visible to all clients. Have a look at SimpleChat sample
Please login first to submit.