数据库体系结构,中央和/ VS本地化服务器 [英] Database Architecture, Central and/vs Localized Server

查看:154
本文介绍了数据库体系结构,中央和/ VS本地化服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在考虑中的系统是为具有多个位置的公司。不可靠的网络连接速度/在一些地方的可用性导致到本地服务器上的每个位置的路径关闭它的位置和一个中央服务器。

The system in question is for a company with multiple locations. Unreliable internet speeds/availability at some locations have led to the path of a local server at each location off of which a location and a central server.

本地服务器的作用是为每个位置,以便能够运行不管它被连接到外界或没有,或消除高延迟,如果连接速度低于最佳

The role of the local server is for each location to be able to run no matter if it is connected to the outside world or not, or to eliminate high latency if the the connection speed is less than optimal.

中央服务器的作用是双重的:

The role of the central server is two-fold:


  1. 配置,策略,用户等管理。例如,新产品,价格变动,促销,用户的变化等,都在中央服务器上完成的,然后分发到本地服务器,以便他们有最先进的最新信息。

  2. 集中在每个位置运行报告,分析和数据仓库创建的所有数据。

多少数据保持在本地服务器上的问题是值得商榷的。例如一些过程是依赖于不只是一个位置,如客户的忠诚度,因此,查询必须运行到中央服务器以检查用户活动,并确定奖励。另一方面,活性客户基础应当是本地服务器数据的范围之内。

The question of how much data to keep on the local server is debatable. For example some processes are dependent upon not just that one location, like customer loyalty, so a query must be run to the central server to check user activity and determine incentives. On the other hand, active customer base should be within the scope of the local servers data.

我没有在这些类型的分布式系统的经验。我的问题是我们应该使用什么数据库,将有助于这种类型的设置后,有望整合功能自动工作的没有太多的编码从中央服务器实现数据同步到/必要的。

I lack experience in these types of distributed systems. My question is what database should we use that will facilitate this type of setup, hopefully incorporating the functionality to work automatically without much coding needed to achieve the data syncs to/from central server.

推荐答案

主从复制:

在此类型的复制一台服务器(主)的接受写入和将复制的变化来读取副本(从)

In this type of replication one server (the master) accepts writes and will replicate the changes to read replicas(slaves)

特性


  • 异步

  • 读取可扩展性

  • 法师是失败的所有节点(SPOF)

主 - 主

在此设置的所有数据库服务器接受读取和写入,并同步在一起。

In this setup all the database servers accepts read and writes and synchronize together.

特性


  • 同步(希望)

  • 读取和写入的可扩展性

  • 性能比主 - 从
  • 更糟
  • 没有SPOF

主 - 主更难建立和维护。 ID冲突的可能性。

Master-Master is harder to setup and maintain. Possibility of id collisions.

任何流行的数据库服务器,这些天以上支持的功能。

Any Popular Database Server these days supports the features above.

这篇关于数据库体系结构,中央和/ VS本地化服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆