We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Modelling Supervision Hierarchy for Stateful Game Objects in Elixir
94
clicks
Source: reddit.com
StayFreshChzBag is working on a game/simulation where every object can be loaded, unloaded, cloned, and has its own state. The author is trying to determine the best way to model the supervision hierarchy for these stateful objects, considering different options like using GenServers with a dynamic supervisor. The discussion focuses on the need for objects to react to world messaging and how to retrieve a list of clones from a root object, potentially using a registry. The author seeks advice on whether a single 'GameObjects' dynamic supervisor is sufficient and how it integrates with a multi-node cluster using `:global`.
Related posts
© HashMerge 2024