
Retries and Timeouts with Bastian Hofmann
12/17/19 • 23 min
In this episode, Benjamin and Matthew talk with Bastian Hofmann about handling retries and timeouts in PHP. Bastian shares a load of great advice, including:
- Having dedicated hosts for certain traffic
- Distinguishing between normal users and admin users
- Offloading work to asynchronous jobs
- Default socket timeouts and max execution times
- Automatic retries
- Tuning settings and rules of thumbs as to how to do so
- Tooling for monitoring
- Circuit breakers
- Integrating monitoring into legacy codebases
- Plus loads load more!
Links
Guests: Bastian Hofmann.
Hosted By: Benjamin Eberlei and Matthew Setter.
Thanks for tuning in to the Undercover ElePHPant. If you'd like to be a guest on the podcast or know someone very knowledgeable in writing highly performant and scalable PHP applications, email [email protected].
This podcast is produced by Tideways. Don't look further for an all in one Monitoring, Profiling and Exception Tracking software for PHP applications available on tideways.com. Follow us on Twitter (@tidewaysio). Find out more about us at https://tideways.com.
In this episode, Benjamin and Matthew talk with Bastian Hofmann about handling retries and timeouts in PHP. Bastian shares a load of great advice, including:
- Having dedicated hosts for certain traffic
- Distinguishing between normal users and admin users
- Offloading work to asynchronous jobs
- Default socket timeouts and max execution times
- Automatic retries
- Tuning settings and rules of thumbs as to how to do so
- Tooling for monitoring
- Circuit breakers
- Integrating monitoring into legacy codebases
- Plus loads load more!
Links
Guests: Bastian Hofmann.
Hosted By: Benjamin Eberlei and Matthew Setter.
Thanks for tuning in to the Undercover ElePHPant. If you'd like to be a guest on the podcast or know someone very knowledgeable in writing highly performant and scalable PHP applications, email [email protected].
This podcast is produced by Tideways. Don't look further for an all in one Monitoring, Profiling and Exception Tracking software for PHP applications available on tideways.com. Follow us on Twitter (@tidewaysio). Find out more about us at https://tideways.com.
Previous Episode

How to Run PHP Applications on Multiple Servers
In this episode, Benjamin and Matthew talk with Robert Douglass and Larry Garfield from Platform.sh about running PHP applications on multiple servers. Robert and Larry share a load of excellent advice, including:
Why you need to use Load Balancers (along with what they are and some of the key options)
How PHP is exceptionally well suited to being deployed across multiple servers out of the box
How you can start deploying your PHP apps on multiple servers today
How to properly share files, data, cache, and sessions
Why sticky sessions are, often, a bad idea
How to handle workers and Cron jobs
Plus loads load more!
Links
Guests: Robert Douglass and Larry Garfield.
Hosted By: Benjamin Eberlei and Matthew Setter.
Thanks for tuning in to the Undercover ElePHPant. If you'd like to be a guest on the podcast or know someone very knowledgeable in writing highly performant and scalable PHP applications, email [email protected].
This podcast is produced by Tideways. Don't look further for an all in one Monitoring, Profiling and Exception Tracking software for PHP applications available on tideways.com. Follow us on Twitter (@tidewaysio). Find out more about us at https://tideways.com.
Next Episode

Integrating with Third-Party APIs with Nils Adermann
In this episode, Benjamin and Matthew talk with Nils Adermann about integrating with third-party APIs in PHP. Nils shares some excellent advice, including:
- Handling retries and timeouts
- Efficiently and effectively working with multiple API vendors
- How to work with vendors when their actions break your apps
- Different types of responses (the good and the bad)
- Writing tests
- Using incremental backoffs
- Working with rolling rate windows
- Plus loads load more — including some vendor horror stories!
Links
Guests: Nils Adermann.
Hosted By: Benjamin Eberlei and Matthew Setter.
Thanks for tuning in to the Undercover ElePHPant. If you'd like to be a guest on the podcast or know someone very knowledgeable in writing highly performant and scalable PHP applications, email [email protected].
This podcast is produced by Tideways. Don't look further for an all in one Monitoring, Profiling and Exception Tracking software for PHP applications available on tideways.com. Follow us on Twitter (@tidewaysio). Find out more about us at https://tideways.com.
If you like this episode you’ll love
Episode Comments
Generate a badge
Get a badge for your website that links back to this episode
<a href="https://goodpods.com/podcasts/the-undercover-elephpant-681127/retries-and-timeouts-with-bastian-hofmann-89700004"> <img src="https://storage.googleapis.com/goodpods-images-bucket/badges/generic-badge-1.svg" alt="listen to retries and timeouts with bastian hofmann on goodpods" style="width: 225px" /> </a>
Copy