# `PhoenixMicro.Application`
[🔗](https://github.com/iamkanishka/phoenix_micro/blob/v1.0.0/lib/phoenix_micro/application.ex#L1)

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]

---

*Consult [api-reference.md](api-reference.md) for complete listing*
