I have Server with a Postgres DB on the same server is a contentmanager application which writes into the psql db. Further I have an other server with a application which fetchs data from the postgresql (read only). I know there are different ways to get remote access from my app server to the postgres server:
- Access over internet with IP Whitelisting
- Access over a SSH Tunnel
- Fetching data over a webservice which runs local on the PSQL Server.
Which solution is the most performant and securest? Or is there any other solution?
Thanks