PHP: How to share data between threads on different servers?
Suppose server has opened separate threads for each connection.
I want to share the data without using database.
Lets say an example:
User1-->Logged in on server1-> Playing a game with x points(server is getting score by AJAX).
User2-->Logged in on server2-> Playing same game with y points(server is getting score by AJAX).
Now i want to make a list of all logged in user with current score(point) of game.
How can i do that without using database.
Use a shared memcached server and store the data there.
Memcache will act like you would do with a database but much faster, which might be the reason you don’t want to use a database here.