I am having a single page application running in webpack dev server for hot reloading on my local. However, the backend application of it was not on my local, it was host in a remote server, say http://remote-server.com.
When I use such address in the chrome address field: 0.0.0.0:3000/homepage
, the http request (api calls to remote backend server) was 5 times (even more) slower than using localhost:3000/homepage
I am really confused why would this happen?
Actually, more precisely, the question would be, what does it mean to a browser/server when I ask Chrome to ping 0.0.0.0, given the fact that 0.0.0.0 is simply used to say 'bind to any possible address'
The http requests are like
get /remote-server.com/api/v1/users
get /remote-server.com/api/v1/products
get /remote-server.com/api/v1/prices
I was expecting the http requests takes the same amount of time.. when I use 0.0.0.0
and localhost
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…