# `PhoenixGenApi.WorkerPool.WorkerPoolSupervisor`
[🔗](https://github.com/ohhi-vn/phoenix_gen_api/blob/main/lib/phoenix_gen_api/worker_pool/worker_pool_supervisor.ex#L1)

Supervisor for worker pools.

This supervisor manages the async and stream worker pools based on
application configuration. It ensures worker pools are restarted if
they crash.

## Configuration

Configure in `config.exs`:

    config :phoenix_gen_api, :worker_pool,
      async_pool_size: 100,
      stream_pool_size: 50,
      max_queue_size: 1000

## Pool Types

- **Async Pool** - For asynchronous request execution
- **Stream Pool** - For streaming request execution

Each pool can have different sizes based on your workload characteristics.

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `start_link`

---

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