I deployed a two apps in lhr
, and sjc
for instance, with nginx
in the middle routing traffic accordingly.
I found that traffic from reverse-proxy nginx correctly routes to the nearest region to the node-app instance, however the node-app instance doesn’t read/write from/to the nearest Postgres cluster.
For instance, node-app deployed to lhr
will rather go to the Postgres instance in sjc
and completely ignore the Postgres instance in lhr
.
Any thoughts on how to fix this?