gleam-lang / otp

📫 Fault tolerant multicore programs with actors

Home Page:https://hexdocs.pm/gleam_otp/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New Feature: Registry

timbuchwaldt opened this issue · comments

I was wondering about local (and clustered, for that matter) registries so one can have the following features:

  • Local discovery of one or more processes
  • Global discovery of processes
  • Maybe: Management of an agent-pool

Especially with clustered discovery I feel like the compile-time type checking might be problematic because one can't guarantee that the remote side runs exactly the same version and therefore has the same type-details.

A useful feature for sure! One question is how would we type this? Would all the channels held by the registry have to accept the same message type?

That is a wonderful question I thought about as well. I think this would be the logical way this should work, yes.

Maybe something like pg scopes for different process types?