3 ms·
I have used refs for a multiplayer server. Five years in to Clojure, there was finally a reason to break them out. Players were in rooms, which were updated te
by reitzensteinm 6y ago
I have used refs for a multiplayer server. Five years in to Clojure, there was finally a reason to break them out.
Players were in rooms, which were updated ten times a second. All of the rooms are largely independent, meaning the best strategy to do this is to use a threadpool to update them in parallel.
However, occasionally operations would require synchronization between rooms (eg, move one player from one to another).
It worked pretty well.