Modelling Supervision Hierarchy for Stateful Game Objects in Elixir

51
clicks
Modelling Supervision Hierarchy for Stateful Game Objects in Elixir
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`.

© HashMerge 2024