openapi-php-sdk icon indicating copy to clipboard operation
openapi-php-sdk copied to clipboard

Laravel Octane: Token cache not shared across workers

Open francescobianco opened this issue 1 year ago • 0 comments

Labels: bug, laravel, octane, concurrency Context: Laravel Octane with Swoole workers

Description: The SDK stores the API token in-memory, which is not shared between workers. Each worker requests a new token, triggering 429 rate-limit errors.

Expected: Allow external cache adapter (e.g. Redis, Memcached) for token persistence across processes.

Impact: Significant performance drop and increased API costs.

francescobianco avatar Nov 09 '25 16:11 francescobianco