PhoenixGenApi.WorkerPool.WorkerPoolSupervisor (PhoenixGenApi v1.1.2)
View SourceSupervisor 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: 1000Pool Types
- Async Pool - For asynchronous request execution
- Stream Pool - For streaming request execution
Each pool can have different sizes based on your workload characteristics.
Summary
Functions
Returns a specification to start this module under a supervisor.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.