Hey, Mark! Thanks for this excellent repo, it was my entrypoint to learning Elixir/Phoenix and I've been enjoying it very much.
I've built a game system based on the ideas in this project and everything is working nicely locally, and is working most of the time in a clustered deployment.
However, I'm having an unfortunate occasional issue where a new game gets registered, a PID is initially returned, but upon looking up the PID using Horde.Registry.lookup(MyApp.GameRegistry, game_code)
, it returns nothing. I'd say this happens for about 1 in 10 new games. I can see that the clustering is working fine otherwise from Node.list
I saw you talk about this issue here:
derekkraan/horde#225 but having that configuration doesn't seem to solve the problem I'm having.
I was wondering if you've got any thoughts about what could be happening here. Is this a race condition? Is there any reason I couldn't store the PID after creation to a database as a fallback?
Thanks so much!