加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Postgresql多个数据库VS多个模式

发布时间:2020-12-13 16:04:15 所属栏目:百科 来源:网络整理
导读:我们正在为工作中的托管服务构建集群,最终产品将用于托管多个单独的服务.我们正在决定如何设置数据库.我们正在运行一个 postgresql数据库服务器,集群中的所有服务都将使用该服务器.现在的争论是,是否在单个数据库中为每个服务提供自己的模式,或者为每个服务
我们正在为工作中的托管服务构建集群,最终产品将用于托管多个单独的服务.我们正在决定如何设置数据库.我们正在运行一个 postgresql数据库服务器,集群中的所有服务都将使用该服务器.现在的争论是,是否在单个数据库中为每个服务提供自己的模式,或者为每个服务提供自己的数据库.

我们不确定哪种解决方案对我们来说更好.我们的服务都没有共同的结构,也不需要共享数据.我们更关心的是易用性.

这是我们最关心的,我们真的希望得到一个客观的,基于意见的答案.

备份

灾难恢复 – 所有服务与个人

服务之间的安全

性能

对于某些其他信息,群集在AWS中托管,我们的数据库是RDS实例.

解决方法

这就是PostgreSQL官方文档所说的:

Databases are physically separated and access control is managed at the connection level. If one PostgreSQL server instance is to house projects or users that should be separate and for the most part unaware of each other,it is therefore recommendable to put them into separate databases. If the projects or users are interrelated and should be able to use each other’s resources they should be put in the same database,but possibly into separate schemas. Schemas are a purely logical structure and who can access what is managed by the privilege system.

资料来源:http://www.postgresql.org/docs/8.0/static/managing-databases.html

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读