Open Relrin opened 4 years ago
What about implementing a registry based on the evmap / ccl crates? Also I think it makes a sense to share my ideas about implementation details:
Popping in here, for context. ccl
is now deprecated in favor of the dashmap
crate.
We were talking about this on Discord, we will go with either dashmap
or flurry
.
Is your feature request related to a problem? Please describe. In Elixir / Erlang languages developers has a universal way to register running actors in the system and communicate with them depends of the required use case, for example:
For an inspiration you can look into the current Elixir documentation for registry usage with examples.
Describe the solution you'd like Use one of available registries out-of-the-box (like in Elixir), initialize and then pass it in the
Bastion
struct for the usage in the cluster after the start.However, it also requires to have at least:
Describe alternatives you've considered Usage of the
lazy_static!
macro with other any available collections to use (wrapped in Arc's hashmaps/vectors, concurrent collections) for organizing desired communication and sharing data.