Dot it early
Concurrent requests
Concurrent processes
Run code concurrently
Http timeout
For packages who use Guzzle and not the Http Facade, we can also bind an instance of the Guzzle Client with a specific configuration.
Dot it later
Dispatch after response
Hit the cache
Use cache for long db queries
Here is how to implement this :
- Create a macro
- Create a class responsible to warm each data we want
- Use it where you need
All content written above is coming from the “Thoughtfull Performance” talk given at Laracon EU 2024 by Tim MacDonald.