Local web service calls extremely slow

Published by Lennart Van Vaerenbergh on May 19, 2015

I encountered this strange phenomenon that made web service calls in my local development environment very, very slow. Pinging the service went fast, browsing directly to the web service went fast, only a call from one local website to the other went really slow.

The reason is that I'm using OS X Yosemite in which (as from Lion) the top level domain .local is reserved for services like Bonjour. And guess what tld I was using. Changing the tld of my local website to something else fixed the problem.

Conclusion: stop using .local as top level domain for your local websites (especially when working on OS X).

Source: http://serverfault.com/questions/66347/why-is-the-response-on-localhost-so-slow

Add new comment

(If you're a human, don't change the following field)
Your first name.
(If you're a human, don't change the following field)
Your first name.
CAPTCHA
This challenge is for testing whether or not you are a human visitor and to prevent automated spam submissions.