avrora icon indicating copy to clipboard operation
avrora copied to clipboard

Dynamic Avrora private clients

Open Strech opened this issue 6 months ago • 0 comments

It would be cool to have interface where we could stay compile-time for core modules, but start them dynamically with a supervision.

By default we start under :default or :avrora key more dynamic avrora clients could be added with their own configurations.

The interface should allow calls like

Avrora.decode("...")
Avrora.decode(pid(), "...")

defmodule MyClient do
  use Avrora.DymanicClient, name: :my_client
end

MyClient.decode("...")
# or
Avrora.decode(:my_client, "...")

Maybe we can leverage Elixir's Registry + DynamicSuperviser

Strech avatar Jul 13 '25 13:07 Strech