开发者

Questions about preferred way to connect to a Postgres database

开发者 https://www.devze.com 2023-01-29 04:18 出处:网络
For starters, I\'m using Postgres. Is socket c开发者_如何学编程onnection a/the preferred way to connect (I will have my database in a separate VM on the same physical machine as my application)? Is

For starters, I'm using Postgres.

Is socket c开发者_如何学编程onnection a/the preferred way to connect (I will have my database in a separate VM on the same physical machine as my application)? Is socket connection faster? Also, will this setup lead to issues when I need to scale my DB to a separate machine?


Working across machines, even if one of them is a VM, requires socket connections.

It will lead to fewer issues when you need to scale up; you will continue using the same connectivity method, but might simply target a new machine/database.

0

精彩评论

暂无评论...
验证码 换一张
取 消