简体   繁体   English

将云中的数据库同步到本地以进行读取规模——如何触发同步?

[英]Sync DB in cloud to on-prem for Read scale --how to trigger the sync?

We are planning to have a subset of our main DB (which is in the cloud) in our on-prem server.我们计划在我们的本地服务器中拥有我们主数据库(位于云中)的一个子集。 It would be for a few tables...and would scale out based on performance needs.这将适用于几张桌子......并且会根据性能需求进行扩展。 We are trying to figure out how to trigger the sync from Azure to on-prem?我们试图弄清楚如何触发从 Azure 到本地的同步? which azure components and db features to use in this case?在这种情况下使用哪些 azure 组件和数据库功能?

Thanks谢谢

You could think about using Azure SQL database Data Sync feature:您可以考虑使用Azure SQL 数据库数据同步功能:

  • SQL Data Sync is a service built on Azure SQL Database that lets you synchronize the data you select bi-directionally across multiple databases, both on-premises and in the cloud. SQL Data Sync is a service built on Azure SQL Database that lets you synchronize the data you select bi-directionally across multiple databases, both on-premises and in the cloud.
  • Data Sync uses a hub and spoke topology to synchronize data.数据同步使用中心辐射型拓扑来同步数据。 You define one of the databases in the sync group as the hub database.您将同步组中的一个数据库定义为中心数据库。 The rest of the databases are member databases.数据库的rest是成员数据库。 Sync occurs only between the hub and individual members.同步仅发生在集线器和单个成员之间。

You could create the Data Sync between Azure SQL database and on-premise SQL Server.您可以在 Azure SQL 数据库和本地 SQL 服务器之间创建数据同步。 Set the Azure SQL database as hub database, on-premise SQL Server ad member database, and Sync Direction: Hub to member.将 Azure SQL 数据库设置为中心数据库,本地 SQL 服务器广告成员数据库和同步方向:中心到成员。 This will help sync data from Azure to on-prem.这将有助于将数据从 Azure 同步到本地。

The Sync group will sync the data every 5 mins automatically.同步组将每 5 分钟自动同步一次数据。 You also could sync data manually.您也可以手动同步数据。

Ref the tutorial: Tutorial: Set up SQL Data Sync between databases in Azure SQL Database and SQL Server Ref the tutorial: Tutorial: Set up SQL Data Sync between databases in Azure SQL Database and SQL Server

HTH. HTH。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM