Pushing Data to and from the Cloud with SQL Azure Data Sync -- TechEd NA 2013

25
Pushing Data to and from the Cloud with SQL Azure Data Sync Christopher Woodruff DBI-B207

Transcript of Pushing Data to and from the Cloud with SQL Azure Data Sync -- TechEd NA 2013

Page 1: Pushing Data to and from the Cloud with SQL Azure Data Sync -- TechEd NA 2013

Pushing Data to and from the Cloud with SQL Azure Data SyncChristopher Woodruff

DBI-B207

Page 2: Pushing Data to and from the Cloud with SQL Azure Data Sync -- TechEd NA 2013

Who am I?Chris WoodruffMVP, Visual C#Telerik, Inc.

[email protected]://chriswoodruff.comhttp://deepfriedbytes.comtwitter @cwoodruff

Page 3: Pushing Data to and from the Cloud with SQL Azure Data Sync -- TechEd NA 2013

Talk GoalsOverviewUnderstand BenefitsDemoDemo Syncing Data with .NET/C#Scenarios

Page 4: Pushing Data to and from the Cloud with SQL Azure Data Sync -- TechEd NA 2013

Microsoft Sync FrameworkMicrosoft Sync Framework is a comprehensive synchronization platform enabling collaboration and offline for applications, services and devices. Developers can build synchronization ecosystems that integrate any application, any data from any store using any protocol over any network.

Page 5: Pushing Data to and from the Cloud with SQL Azure Data Sync -- TechEd NA 2013

Overview

Page 6: Pushing Data to and from the Cloud with SQL Azure Data Sync -- TechEd NA 2013

Benefit of Azure Data Sync

Complexity without Code

Page 7: Pushing Data to and from the Cloud with SQL Azure Data Sync -- TechEd NA 2013

Benefit of Azure Data Sync

Leveraging the Azure Platform

Page 8: Pushing Data to and from the Cloud with SQL Azure Data Sync -- TechEd NA 2013

Demo

Demo SQL Azure Data Sync through Azure Management Portal

Page 9: Pushing Data to and from the Cloud with SQL Azure Data Sync -- TechEd NA 2013

Demo WorkflowWindows Azure

On-Premise

Chinook Music Store SQL Database SQL Data Sync

Data Sync Agent

Chinook DB

ChinookAdmin

Application

SQL Data Sync Server

Sync Group

Page 10: Pushing Data to and from the Cloud with SQL Azure Data Sync -- TechEd NA 2013

Best Practices (Agents)Least privilege accounts with network service accessSeparate machine from on-premises SQL ServerDo not register an on-premises DB with more than one agent

Page 11: Pushing Data to and from the Cloud with SQL Azure Data Sync -- TechEd NA 2013

Best Practices (Database)Not all tables in DB need to be in Sync GroupAll Tables in Sync Group need a PKTEST, TEST and TEST before Production

Page 12: Pushing Data to and from the Cloud with SQL Azure Data Sync -- TechEd NA 2013

Demo

Demo Syncing Data through Microsoft Sync Framework

Page 13: Pushing Data to and from the Cloud with SQL Azure Data Sync -- TechEd NA 2013

What happens when things go very wrong?Conflict between the on-premise database and the SQL Azure database, the ApplyChangeFailed event will be raised.

DbApplyChangeFailedEventArgs object provides information about the error or conflict that caused the failure

Page 14: Pushing Data to and from the Cloud with SQL Azure Data Sync -- TechEd NA 2013

What are the differences between SQL Azure Data Sync and Custom Data

Sync with SQL Azure?

Page 15: Pushing Data to and from the Cloud with SQL Azure Data Sync -- TechEd NA 2013

Scenarios for SQL AzureData Backup to Cloud

Azure SQL Database

On-PremiseDatabase

Page 16: Pushing Data to and from the Cloud with SQL Azure Data Sync -- TechEd NA 2013

Scenarios for SQL AzureMobile Data Syncing

Azure SQL Database

On-PremiseDatabase

Page 17: Pushing Data to and from the Cloud with SQL Azure Data Sync -- TechEd NA 2013

Scenarios for SQL AzureCloud Data Syncing

Azure SQL Database

Azure SQL Database

Page 18: Pushing Data to and from the Cloud with SQL Azure Data Sync -- TechEd NA 2013
Page 19: Pushing Data to and from the Cloud with SQL Azure Data Sync -- TechEd NA 2013

The demo project can be found at:

github.com/cwoodruff/TechEd2013ChinookSync

Page 20: Pushing Data to and from the Cloud with SQL Azure Data Sync -- TechEd NA 2013

Track resources

SQL Data Sync @ MSDNhttp://msdn.microsoft.com/en-us/library/hh456371.aspx

Windows Azure SQL Databasehttp://msdn.microsoft.com/en-us/library/windowsazure/ee336279.aspx

Windows Azure Developer Guidancehttp://msdn.microsoft.com/en-us/library/windowsazure/jj673464.aspx

Microsoft Sync Frameworkhttp://msdn.microsoft.com/en-us/sync/bb736753.aspx

Microsoft Sync Framework 2.1 (SDK)http://www.microsoft.com/en-us/download/details.aspx?id=23217

Page 21: Pushing Data to and from the Cloud with SQL Azure Data Sync -- TechEd NA 2013

Contact [email protected]

Twitter @cwoodruff

Skype cwoodruff

http://chriswoodruff.com

Page 22: Pushing Data to and from the Cloud with SQL Azure Data Sync -- TechEd NA 2013

msdn

Resources for Developers

http://microsoft.com/msdn

Learning

Microsoft Certification & Training Resources

www.microsoft.com/learning

TechNet

Resources

Sessions on Demand

http://channel9.msdn.com/Events/TechEd

Resources for IT Professionals

http://microsoft.com/technet

Page 23: Pushing Data to and from the Cloud with SQL Azure Data Sync -- TechEd NA 2013

Complete an evaluation on CommNet and enter to win!

Page 24: Pushing Data to and from the Cloud with SQL Azure Data Sync -- TechEd NA 2013

MS tag

Scan the Tagto evaluate this session now on myTechEd Mobile

Page 25: Pushing Data to and from the Cloud with SQL Azure Data Sync -- TechEd NA 2013

© 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.