How do I set up a Circuit Breaker for a flaky third-party API dependency?
A breaker alone won't hold: pull connect_timeout and timeout down to 800ms-2s, isolate the dependency behind a bulkhead, and define a cached fallback.
Tag
Building applications with Laravel: Eloquent, queues, authentication and version upgrades. Questions under this tag, answered directly. (Page 2/2)
13 answered questions carry this tag.
A breaker alone won't hold: pull connect_timeout and timeout down to 800ms-2s, isolate the dependency behind a bulkhead, and define a cached fallback.
Serve 2-5 GB files outside PHP via a presigned URL or X-Accel-Redirect; if it must go through PHP, chunk it with readStream and turn off buffering.
Plot the memory_get_usage curve first, bisect service providers to narrow the culprit, then reset stateful singletons in Octane's hooks and clear statics.