Tinkex.Application (Tinkex v0.3.4)
View SourceOTP application for the Tinkex SDK.
Initializes ETS tables for shared runtime state, starts Finch pools tuned for the default base URL, and supervises client-facing processes. Additional pools can be started in the host application if multiple tenants need isolated pool sizing.
Pool Configuration (Python Parity)
Python SDK uses httpx.Limits(max_connections=1000, max_keepalive_connections=20).
Tinkex configures Finch pools to approximate these limits:
pool_size- connections per pool (default: 50, env:TINKEX_POOL_SIZE)pool_count- number of pools (default: 20, env:TINKEX_POOL_COUNT)- Total connections = pool_size * pool_count = 1000 (matching Python's max_connections)
Override via application config or environment variables:
# config.exs
config :tinkex,
pool_size: 100,
pool_count: 10
# Environment variables
export TINKEX_POOL_SIZE=100
export TINKEX_POOL_COUNT=10
Summary
Functions
@spec default_pool_count() :: pos_integer()
Returns the default pool count.
@spec default_pool_size() :: pos_integer()
Returns the default pool size.