PhoenixMicro.Application (PhoenixMicro v1.0.0)

Copy Markdown View Source

OTP Application entry point for phoenix_micro.

Starts the full supervision tree:

PhoenixMicro.Supervisor (one_for_one)
 Registry
 CircuitBreaker.Store
 Schema.Registry
 Phoenix.MetricsStore
 Transport.Memory (always)
 Transport.* (configured)
 Producer
 RPC
 ConsumerManager (DynamicSupervisor)
 Saga.Supervisor (DynamicSupervisor)

After the tree starts, any consumers listed in config are auto-registered:

config :phoenix_micro,
  consumers: [MyApp.Payments.CreatedConsumer, MyApp.Orders.PlacedConsumer]