Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

deansatch's avatar

Very very slow api requests on homestead

Does anyone know why an api call to Azure would take 20 seconds to return a response on homestead but when I push to production server it is almost instant?

0 likes
6 replies
Tray2's avatar

Homestead runs in a virtual machine with limited resources so it might be one of the reasons.

deansatch's avatar

thing is, other api calls are ok - just seems to be the azure ones

Tray2's avatar

Do you run the azure on your local machine or on a dedicated server/cloud?

Tray2's avatar

Sounds a bit like there might be some kind of network issue between your homestead and the Azure server.

deansatch's avatar

Yeah, that’s what I’m trying to figure out. My vm is pretty high spec and certainly shouldn’t struggle to make a post request. Wondered if it might be some weird homestead thing that needs a tweak

Please or to participate in this conversation.