SlideShare une entreprise Scribd logo
1  sur  42
Télécharger pour lire hors ligne
Change the Rules



Lap around SQL Azure
      Anko Duizer
Change the Rules

                      Introduction
• Anko Duizer
   – Chief Software Architect
   – Blog: http://www.ankoduizer.nl
   – Twitter: ankoduizer
• TellUs
   –   Lead generation
   –   > 5000 sites
   –   World wide
   –   Microsoft platform
Change the Rules




INTRODUCTION
Change the Rules

   Data platform: device to cloud
                                      RDBMS
              Caching Protection     Load Mining       Sync                      Reporting
Service            Analysis   Query          Integration                          Search
                                    Backup



Type          In           Multi       Relational          XML         File
            Memory         Dim           BLOB




Place
          Mobile/Desktop           Desktop      Server   Mega-server          Data Services
Change the Rules




              Reporting          Business Analytics        Data sync




•   The power of the SQL Data Platform in the cloud

•   Leverages existing skills and rich tooling ecosystem

•   Enables database applications with new, “cloud” capabilities
Change the Rules




  Cloud       Data in the
application
                cloud




              On-premises
               application
Change the Rules

                                                                             Value Props:




Dedicated       Value Props:
                                                                On-premise
    Resources




                                             Hosted
                                                Value Props:


                               SQL Azure        Roll-your-own HA/scale

 Shared
                Low                        Control                             High
Change the Rules




SQL AZURE
Change the Rules

            SQL Azure
• Mangebility
• Scalability
• Developer empowerment
Change the Rules

        Application        Browser        Application
                          application                   ODBC, OLEDB,
        REST Client                       SQL Client*
                                                        ADO.Net PHP,
                                                        Ruby, …


                         Cloud




          HTTP+REST




                            HTTP




                                             TDS
                 Windows Azure
         REST (Astoria)      Web App
         ADO.Net + EF       SQL Client*
Cloud


                      TDS + TSQL Model

                      SQL Azure
Change the Rules



                                            Account
Server=server1.data.database.windows.net
Database=testDB
Login=nigele[@server1] (maps to testuser)
                                            Server


                                            Database
Change the Rules

 Logical vs. Physical administration
• SQL Azure focus on logical administration
  – Schema creation and management
  – Query optimization
  – Security management (Logins, Users, Roles)
• Service handles physical management
  – Automatically replicated with HA “out of box”
  – Transparent failover in case of failure
Change the Rules

                                     Architecture
                      Provisioning (databases, accounts, roles, …, metering, and billing

        Machine 4                                     Machine 5                                  Machine 6
       SQL Instance                                  SQL Instance                               SQL Instance
          SQL DB                                        SQL DB                                     SQL DB
User   User    User       User               User    User    User    User               User    User     User   User
DB1    DB2     DB3        DB4                DB1     DB2     DB3     DB4                DB1     DB2      DB3    DB4




                   scalability and availability: fabric, failover, replication, and load balancing Load balancing
                                          Scalability and Availability: Fabric, Failover, Replication, and
Change the Rules

               Deployment
• Support for basic deployment options
  – SQL scripts work (but not attach database)
• Geo-location of Windows Azure compute
  and SQL Azure databases
• Cloud or on-premise is a deployment time
  choice
Change the Rules

               SQL Azure deployment
         Web Portal
           (API)



 DB                   SQL Azure
Script
                        TDS
Change the Rules

    SQL Azure - Accessing databases
          Web Portal
            (API)



   Your                SQL Azure

   App                   TDS




Change connection string
Change the Rules

Database replicas
            Replica 1



            Replica 2
    DB

            Replica 3
Change the Rules

Database monitoring & recovery
       Web Portal
         (API)




Your
App                         !
                    SQL Azure
                      TDS
Change the Rules

Failure Scenario
                                 Database Backups
                                       Solution                                              When      Responsible Party




  X
                HW and Media           Multiple replicas of all databases with automatic     Today     SQL Azure - Built-in to
                failures               failover. System backups for additional protection              the base service



                                       Use BCP, SSIS or other custom tools to backup data    Today     Customer
Customer application or
administrator errors leading to data   Database clone to create on-demand, backups of
loss                                   databases in the local or remote SQL Azure region
                                         • Cloning is done with transactional consistency    1H 2010   Customer
                                         • When clone operation is complete the replica is
                                           accessible as a normal database
                                       Continuous backup option with point-in-time restore
                                       capabilities                                                    1.   Customer enables
                                                                                                            and configures it.
                                         • Configurable retention and lag period             2H 2010
                                                                                                       2.   Service will
                                         • Backups available for read operations
                                                                                                            maintain it
                                         • Local or remote region
Change the Rules
                   Database clone
 xyz.database.windows.net             efg.database.windows.net
  Master   prod1   Prod2               prod2
                                                  DR1   Master
                                       clone

                   prod2
                   clone


 abc.database.windows.net
                   prod2
  Master   Dev1
                   clone


     South central US                    North central US

CREATE DATABASE efg.prod2clone
                abc.prod2clone
                xyz.prod2clone   AS CLONE OF xyz.prod2
Change the Rules




PROGRAMMING SQL AZURE
Change the Rules

        Programming model
• Small data sets
  – Use a single database
  – Same model as on premise SQL Server
• Large data sets and/or massive throughput
  – Partition data across many databases
  – Use parallel fan-out queries to fetch the data
  – Application code must be partition aware in v1
Change the Rules

          Connection model
• Use existing client libraries
  – ADO.NET, ODBC, PHP
• Client libraries pre-installed in Azure roles
• Support for ASP.NET controls
• Clients connect directly to a database
Change the Rules

            Compatibility goals
•   Support common application patterns
•   Logical/policy based administration
•   Patterns work from SQL Server to SQL Azure
•   Multi-tenancy considerations
    – Throttling
    – Limits on DB size, transaction duration, …
Change the Rules

   Sample of SQL compatibility
v1                           vNext
• Tables, indexes and        • Distributed transactions
  views                      • Distributed query
• Stored procedures          • CLR
• Triggers                   • Service broker
• Constraints                • Spatial
• Table variables,           • Physical server or
  session temp tables (#t)     catalog DDL and views
Change the Rules

             Security model
• Uses regular SQL security model
  – Authenticate logins, map to users and roles
  – Authorize users and roles to SQL objects
• Limited to standard SQL Auth logins
  – Username + password
• Future AD Federation, WLID, etc as alternate
  authentication protocols
Change the Rules




FUTURE
Change the Rules

                  Planned
•   Partitioned databases
•   Spatial data
•   Security AD, WLID, etc
•   Increased database size
Change the Rules

                 Requests…
•   Add support for profiler, DMVs …
•   Full-text search support
•   Change tracking support
•   Support for CLR
•   Cloud based Business Intelligence (BI)
    solutions
Change the Rules




USEFUL?
Change the Rules

                       Scenarios for V1
•   Departmental applications
     – Simple application built by individual or department
     – Need simple deployment, self-management, IT: “Empowerment and governance”
•   Web Applications
     – Small business or startup that uses the cloud as their IT
     – Simple deployment, self-management, scale on demand
•   ISV
     – ISV hosting software on behalf of customer
     – Multi-tenant support for billing and isolation
•   Data hub
     – Sharing and aggregating of data across tiers and across enterprises
     – Centralized place for data, high scale, sync with existing data sources
Change the Rules


Application/
 Browser




App Code




  Azure
Change the Rules

                       Application/
                        Browser




How much                   App Code
   data is
transfered?   On premise




                            Azure
Change the Rules

             Source




              SSIS

On premise




             backup


         Azure
Change the Rules


    Application/
     Browser




    App Code




                   Z
X        Y


     Azure
Change the Rules



                                     Azure
                    Sync framework
                                      Data
         Source                       hub




                                               Sync framework
On-premise/ department




                                      Source



                                     Laptop
Change the Rules




NOT USEFUL!
Change the Rules

                       Application/
                        Browser




 Too much                  App Code
   data
transferred   On premise




                            Azure
Change the Rules



                   SSIS



         On
         premise




Source                    destination

Azure                     Azure
Change the Rules




Is it cheaper?
Change the Rules




•   1GB Database            •   10GB Database
•   $9.99 / month           •   $99.99 / month
•   Bandwidth               •   Bandwidth
     – $0.10 /GB inbound         – $0.10 /GB inbound
     – $0.15 /GB outbound        – $0.15 /GB outbound
Change the Rules




Question?

Contenu connexe

Tendances

[SSA] 03.newsql database (2014.02.05)
[SSA] 03.newsql database (2014.02.05)[SSA] 03.newsql database (2014.02.05)
[SSA] 03.newsql database (2014.02.05)
Steve Min
 
NewSQL Database Overview
NewSQL Database OverviewNewSQL Database Overview
NewSQL Database Overview
Steve Min
 
Ms Sql Server Black Book
Ms Sql Server Black BookMs Sql Server Black Book
Ms Sql Server Black Book
LiquidHub
 
Orders of-magnitude-scale-out-your-sql-server-data-slideshare
Orders of-magnitude-scale-out-your-sql-server-data-slideshareOrders of-magnitude-scale-out-your-sql-server-data-slideshare
Orders of-magnitude-scale-out-your-sql-server-data-slideshare
Mark Broadbent
 
Apache hadoop for windows server and windwos azure
Apache hadoop for windows server and windwos azureApache hadoop for windows server and windwos azure
Apache hadoop for windows server and windwos azure
Brad Sarsfield
 

Tendances (20)

SQLFire lightning talk
SQLFire lightning talkSQLFire lightning talk
SQLFire lightning talk
 
Getting Started with Azure SQL Database (Presented at Pittsburgh TechFest 2018)
Getting Started with Azure SQL Database (Presented at Pittsburgh TechFest 2018)Getting Started with Azure SQL Database (Presented at Pittsburgh TechFest 2018)
Getting Started with Azure SQL Database (Presented at Pittsburgh TechFest 2018)
 
[SSA] 03.newsql database (2014.02.05)
[SSA] 03.newsql database (2014.02.05)[SSA] 03.newsql database (2014.02.05)
[SSA] 03.newsql database (2014.02.05)
 
SQL Database on Azure
SQL Database on AzureSQL Database on Azure
SQL Database on Azure
 
High Performance Databases
High Performance DatabasesHigh Performance Databases
High Performance Databases
 
KoprowskiT_SPBizConference_2AMaDisasterJustBegan
KoprowskiT_SPBizConference_2AMaDisasterJustBeganKoprowskiT_SPBizConference_2AMaDisasterJustBegan
KoprowskiT_SPBizConference_2AMaDisasterJustBegan
 
NewSQL Database Overview
NewSQL Database OverviewNewSQL Database Overview
NewSQL Database Overview
 
My sql 5.6_replwebinar_may12
My sql 5.6_replwebinar_may12My sql 5.6_replwebinar_may12
My sql 5.6_replwebinar_may12
 
Ms Sql Server Black Book
Ms Sql Server Black BookMs Sql Server Black Book
Ms Sql Server Black Book
 
Day 2 - Amazon RDS - Letting AWS run your Low Admin, High Performance Database
Day 2 - Amazon RDS - Letting AWS run your Low Admin, High Performance DatabaseDay 2 - Amazon RDS - Letting AWS run your Low Admin, High Performance Database
Day 2 - Amazon RDS - Letting AWS run your Low Admin, High Performance Database
 
Orders of-magnitude-scale-out-your-sql-server-data-slideshare
Orders of-magnitude-scale-out-your-sql-server-data-slideshareOrders of-magnitude-scale-out-your-sql-server-data-slideshare
Orders of-magnitude-scale-out-your-sql-server-data-slideshare
 
Apache hadoop for windows server and windwos azure
Apache hadoop for windows server and windwos azureApache hadoop for windows server and windwos azure
Apache hadoop for windows server and windwos azure
 
2011 04-dsi-javaee-in-the-cloud-andreadis
2011 04-dsi-javaee-in-the-cloud-andreadis2011 04-dsi-javaee-in-the-cloud-andreadis
2011 04-dsi-javaee-in-the-cloud-andreadis
 
MySQL高可用
MySQL高可用MySQL高可用
MySQL高可用
 
SQL Azure Overview
SQL Azure OverviewSQL Azure Overview
SQL Azure Overview
 
KoprowskiT_SQLAzureLandingInBelfast
KoprowskiT_SQLAzureLandingInBelfastKoprowskiT_SQLAzureLandingInBelfast
KoprowskiT_SQLAzureLandingInBelfast
 
SQLFire at Strata 2012
SQLFire at Strata 2012SQLFire at Strata 2012
SQLFire at Strata 2012
 
Move to azure
Move to azureMove to azure
Move to azure
 
Azure Boot Camp 21.04.2018 SQL Server in Azure Iaas PaaS on-prem Lars Platzdasch
Azure Boot Camp 21.04.2018 SQL Server in Azure Iaas PaaS on-prem Lars PlatzdaschAzure Boot Camp 21.04.2018 SQL Server in Azure Iaas PaaS on-prem Lars Platzdasch
Azure Boot Camp 21.04.2018 SQL Server in Azure Iaas PaaS on-prem Lars Platzdasch
 
SQL ON Azure (decision-matrix)
SQL  ON  Azure (decision-matrix)SQL  ON  Azure (decision-matrix)
SQL ON Azure (decision-matrix)
 

En vedette

Technology Resources
Technology ResourcesTechnology Resources
Technology Resources
guest2d06ac4
 
Mon autobiographie
Mon autobiographieMon autobiographie
Mon autobiographie
brittanyd29
 

En vedette (7)

Domain Name System
Domain Name SystemDomain Name System
Domain Name System
 
Technology Resources
Technology ResourcesTechnology Resources
Technology Resources
 
In De Wolken Met Cloud Computing
In De Wolken Met Cloud ComputingIn De Wolken Met Cloud Computing
In De Wolken Met Cloud Computing
 
Sprookjesdroom
SprookjesdroomSprookjesdroom
Sprookjesdroom
 
Mon autobiographie
Mon autobiographieMon autobiographie
Mon autobiographie
 
Windows Azure For Architects
Windows Azure For ArchitectsWindows Azure For Architects
Windows Azure For Architects
 
The Outcome Economy
The Outcome EconomyThe Outcome Economy
The Outcome Economy
 

Similaire à Lap Around Sql Azure

Building applications using sql azure
Building applications using sql azureBuilding applications using sql azure
Building applications using sql azure
pedrojcj
 
Databases in the Cloud - DevDay Austin 2017 Day 2
Databases in the Cloud - DevDay Austin 2017 Day 2Databases in the Cloud - DevDay Austin 2017 Day 2
Databases in the Cloud - DevDay Austin 2017 Day 2
Amazon Web Services
 
AWS Partner Presentation - Datapipe - Deploying Hybrid IT, AWS Summit 2012 - NYC
AWS Partner Presentation - Datapipe - Deploying Hybrid IT, AWS Summit 2012 - NYCAWS Partner Presentation - Datapipe - Deploying Hybrid IT, AWS Summit 2012 - NYC
AWS Partner Presentation - Datapipe - Deploying Hybrid IT, AWS Summit 2012 - NYC
Amazon Web Services
 

Similaire à Lap Around Sql Azure (20)

Sql azure introduction
Sql azure introductionSql azure introduction
Sql azure introduction
 
Extending your data to the cloud
Extending your data to the cloudExtending your data to the cloud
Extending your data to the cloud
 
Migrating Oracle Databases to AWS
Migrating Oracle Databases to AWSMigrating Oracle Databases to AWS
Migrating Oracle Databases to AWS
 
Introduction to Azure SQL DB
Introduction to Azure SQL DBIntroduction to Azure SQL DB
Introduction to Azure SQL DB
 
Sql azure data services OData
Sql azure data services ODataSql azure data services OData
Sql azure data services OData
 
Azure - Data Platform
Azure - Data PlatformAzure - Data Platform
Azure - Data Platform
 
AZURE Data Related Services
AZURE Data Related ServicesAZURE Data Related Services
AZURE Data Related Services
 
SQL and NoSQL in SQL Server
SQL and NoSQL in SQL ServerSQL and NoSQL in SQL Server
SQL and NoSQL in SQL Server
 
SQL Azure Federation and Scalability
SQL Azure Federation and ScalabilitySQL Azure Federation and Scalability
SQL Azure Federation and Scalability
 
Building applications using sql azure
Building applications using sql azureBuilding applications using sql azure
Building applications using sql azure
 
DBaaS with EDB Postgres on AWS
DBaaS with EDB Postgres on AWSDBaaS with EDB Postgres on AWS
DBaaS with EDB Postgres on AWS
 
What's New for the Windows Azure Developer? Lots!!
What's New for the Windows Azure Developer?  Lots!!What's New for the Windows Azure Developer?  Lots!!
What's New for the Windows Azure Developer? Lots!!
 
Introducing Azure SQL Data Warehouse
Introducing Azure SQL Data WarehouseIntroducing Azure SQL Data Warehouse
Introducing Azure SQL Data Warehouse
 
Databases in the Cloud - DevDay Austin 2017 Day 2
Databases in the Cloud - DevDay Austin 2017 Day 2Databases in the Cloud - DevDay Austin 2017 Day 2
Databases in the Cloud - DevDay Austin 2017 Day 2
 
Azure data platform overview
Azure data platform overviewAzure data platform overview
Azure data platform overview
 
Tech-Spark: Azure SQL Databases
Tech-Spark: Azure SQL DatabasesTech-Spark: Azure SQL Databases
Tech-Spark: Azure SQL Databases
 
SQL Azure
SQL AzureSQL Azure
SQL Azure
 
Azure Data services
Azure Data servicesAzure Data services
Azure Data services
 
AWS Partner Presentation - Datapipe - Deploying Hybrid IT, AWS Summit 2012 - NYC
AWS Partner Presentation - Datapipe - Deploying Hybrid IT, AWS Summit 2012 - NYCAWS Partner Presentation - Datapipe - Deploying Hybrid IT, AWS Summit 2012 - NYC
AWS Partner Presentation - Datapipe - Deploying Hybrid IT, AWS Summit 2012 - NYC
 
2014.11.14 Data Opportunities with Azure
2014.11.14 Data Opportunities with Azure2014.11.14 Data Opportunities with Azure
2014.11.14 Data Opportunities with Azure
 

Dernier

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Dernier (20)

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 

Lap Around Sql Azure

  • 1. Change the Rules Lap around SQL Azure Anko Duizer
  • 2. Change the Rules Introduction • Anko Duizer – Chief Software Architect – Blog: http://www.ankoduizer.nl – Twitter: ankoduizer • TellUs – Lead generation – > 5000 sites – World wide – Microsoft platform
  • 4. Change the Rules Data platform: device to cloud RDBMS Caching Protection Load Mining Sync Reporting Service Analysis Query Integration Search Backup Type In Multi Relational XML File Memory Dim BLOB Place Mobile/Desktop Desktop Server Mega-server Data Services
  • 5. Change the Rules Reporting Business Analytics Data sync • The power of the SQL Data Platform in the cloud • Leverages existing skills and rich tooling ecosystem • Enables database applications with new, “cloud” capabilities
  • 6. Change the Rules Cloud Data in the application cloud On-premises application
  • 7. Change the Rules Value Props: Dedicated Value Props: On-premise Resources Hosted Value Props: SQL Azure Roll-your-own HA/scale Shared Low Control High
  • 9. Change the Rules SQL Azure • Mangebility • Scalability • Developer empowerment
  • 10. Change the Rules Application Browser Application application ODBC, OLEDB, REST Client SQL Client* ADO.Net PHP, Ruby, … Cloud HTTP+REST HTTP TDS Windows Azure REST (Astoria) Web App ADO.Net + EF SQL Client* Cloud TDS + TSQL Model SQL Azure
  • 11. Change the Rules Account Server=server1.data.database.windows.net Database=testDB Login=nigele[@server1] (maps to testuser) Server Database
  • 12. Change the Rules Logical vs. Physical administration • SQL Azure focus on logical administration – Schema creation and management – Query optimization – Security management (Logins, Users, Roles) • Service handles physical management – Automatically replicated with HA “out of box” – Transparent failover in case of failure
  • 13. Change the Rules Architecture Provisioning (databases, accounts, roles, …, metering, and billing Machine 4 Machine 5 Machine 6 SQL Instance SQL Instance SQL Instance SQL DB SQL DB SQL DB User User User User User User User User User User User User DB1 DB2 DB3 DB4 DB1 DB2 DB3 DB4 DB1 DB2 DB3 DB4 scalability and availability: fabric, failover, replication, and load balancing Load balancing Scalability and Availability: Fabric, Failover, Replication, and
  • 14. Change the Rules Deployment • Support for basic deployment options – SQL scripts work (but not attach database) • Geo-location of Windows Azure compute and SQL Azure databases • Cloud or on-premise is a deployment time choice
  • 15. Change the Rules SQL Azure deployment Web Portal (API) DB SQL Azure Script TDS
  • 16. Change the Rules SQL Azure - Accessing databases Web Portal (API) Your SQL Azure App TDS Change connection string
  • 17. Change the Rules Database replicas Replica 1 Replica 2 DB Replica 3
  • 18. Change the Rules Database monitoring & recovery Web Portal (API) Your App ! SQL Azure TDS
  • 19. Change the Rules Failure Scenario Database Backups Solution When Responsible Party X HW and Media Multiple replicas of all databases with automatic Today SQL Azure - Built-in to failures failover. System backups for additional protection the base service Use BCP, SSIS or other custom tools to backup data Today Customer Customer application or administrator errors leading to data Database clone to create on-demand, backups of loss databases in the local or remote SQL Azure region • Cloning is done with transactional consistency 1H 2010 Customer • When clone operation is complete the replica is accessible as a normal database Continuous backup option with point-in-time restore capabilities 1. Customer enables and configures it. • Configurable retention and lag period 2H 2010 2. Service will • Backups available for read operations maintain it • Local or remote region
  • 20. Change the Rules Database clone xyz.database.windows.net efg.database.windows.net Master prod1 Prod2 prod2 DR1 Master clone prod2 clone abc.database.windows.net prod2 Master Dev1 clone South central US North central US CREATE DATABASE efg.prod2clone abc.prod2clone xyz.prod2clone AS CLONE OF xyz.prod2
  • 22. Change the Rules Programming model • Small data sets – Use a single database – Same model as on premise SQL Server • Large data sets and/or massive throughput – Partition data across many databases – Use parallel fan-out queries to fetch the data – Application code must be partition aware in v1
  • 23. Change the Rules Connection model • Use existing client libraries – ADO.NET, ODBC, PHP • Client libraries pre-installed in Azure roles • Support for ASP.NET controls • Clients connect directly to a database
  • 24. Change the Rules Compatibility goals • Support common application patterns • Logical/policy based administration • Patterns work from SQL Server to SQL Azure • Multi-tenancy considerations – Throttling – Limits on DB size, transaction duration, …
  • 25. Change the Rules Sample of SQL compatibility v1 vNext • Tables, indexes and • Distributed transactions views • Distributed query • Stored procedures • CLR • Triggers • Service broker • Constraints • Spatial • Table variables, • Physical server or session temp tables (#t) catalog DDL and views
  • 26. Change the Rules Security model • Uses regular SQL security model – Authenticate logins, map to users and roles – Authorize users and roles to SQL objects • Limited to standard SQL Auth logins – Username + password • Future AD Federation, WLID, etc as alternate authentication protocols
  • 28. Change the Rules Planned • Partitioned databases • Spatial data • Security AD, WLID, etc • Increased database size
  • 29. Change the Rules Requests… • Add support for profiler, DMVs … • Full-text search support • Change tracking support • Support for CLR • Cloud based Business Intelligence (BI) solutions
  • 31. Change the Rules Scenarios for V1 • Departmental applications – Simple application built by individual or department – Need simple deployment, self-management, IT: “Empowerment and governance” • Web Applications – Small business or startup that uses the cloud as their IT – Simple deployment, self-management, scale on demand • ISV – ISV hosting software on behalf of customer – Multi-tenant support for billing and isolation • Data hub – Sharing and aggregating of data across tiers and across enterprises – Centralized place for data, high scale, sync with existing data sources
  • 32. Change the Rules Application/ Browser App Code Azure
  • 33. Change the Rules Application/ Browser How much App Code data is transfered? On premise Azure
  • 34. Change the Rules Source SSIS On premise backup Azure
  • 35. Change the Rules Application/ Browser App Code Z X Y Azure
  • 36. Change the Rules Azure Sync framework Data Source hub Sync framework On-premise/ department Source Laptop
  • 38. Change the Rules Application/ Browser Too much App Code data transferred On premise Azure
  • 39. Change the Rules SSIS On premise Source destination Azure Azure
  • 40. Change the Rules Is it cheaper?
  • 41. Change the Rules • 1GB Database • 10GB Database • $9.99 / month • $99.99 / month • Bandwidth • Bandwidth – $0.10 /GB inbound – $0.10 /GB inbound – $0.15 /GB outbound – $0.15 /GB outbound