0
Change the Rules



Lap around SQL Azure
      Anko Duizer
Change the Rules

                      Introduction
• Anko Duizer
   – Chief Software Architect
   – Blog: http://www.ank...
Change the Rules




INTRODUCTION
Change the Rules

   Data platform: device to cloud
                                      RDBMS
              Caching Prot...
Change the Rules




              Reporting          Business Analytics        Data sync




•   The power of the SQL Dat...
Change the Rules




  Cloud       Data in the
application
                cloud




              On-premises
           ...
Change the Rules

                                                                             Value Props:




Dedicated ...
Change the Rules




SQL AZURE
Change the Rules

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

        Application        Browser        Application
                          application             ...
Change the Rules



                                            Account
Server=server1.data.database.windows.net
Database=...
Change the Rules

 Logical vs. Physical administration
• SQL Azure focus on logical administration
  – Schema creation and...
Change the Rules

                                     Architecture
                      Provisioning (databases, account...
Change the Rules

               Deployment
• Support for basic deployment options
  – SQL scripts work (but not attach da...
Change the Rules

               SQL Azure deployment
         Web Portal
           (API)



 DB                   SQL Az...
Change the Rules

    SQL Azure - Accessing databases
          Web Portal
            (API)



   Your                SQL...
Change the Rules

Database replicas
            Replica 1



            Replica 2
    DB

            Replica 3
Change the Rules

Database monitoring & recovery
       Web Portal
         (API)




Your
App                         !
 ...
Change the Rules

Failure Scenario
                                 Database Backups
                                     ...
Change the Rules
                   Database clone
 xyz.database.windows.net             efg.database.windows.net
  Master...
Change the Rules




PROGRAMMING SQL AZURE
Change the Rules

        Programming model
• Small data sets
  – Use a single database
  – Same model as on premise SQL S...
Change the Rules

          Connection model
• Use existing client libraries
  – ADO.NET, ODBC, PHP
• Client libraries pre...
Change the Rules

            Compatibility goals
•   Support common application patterns
•   Logical/policy based adminis...
Change the Rules

   Sample of SQL compatibility
v1                           vNext
• Tables, indexes and        • Distrib...
Change the Rules

             Security model
• Uses regular SQL security model
  – Authenticate logins, map to users and ...
Change the Rules




FUTURE
Change the Rules

                  Planned
•   Partitioned databases
•   Spatial data
•   Security AD, WLID, etc
•   Incr...
Change the Rules

                 Requests…
•   Add support for profiler, DMVs …
•   Full-text search support
•   Change ...
Change the Rules




USEFUL?
Change the Rules

                       Scenarios for V1
•   Departmental applications
     – Simple application built by...
Change the Rules


Application/
 Browser




App Code




  Azure
Change the Rules

                       Application/
                        Browser




How much                   App C...
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
                        ...
Change the Rules




NOT USEFUL!
Change the Rules

                       Application/
                        Browser




 Too much                  App C...
Change the Rules



                   SSIS



         On
         premise




Source                    destination

Azu...
Change the Rules




Is it cheaper?
Change the Rules




•   1GB Database            •   10GB Database
•   $9.99 / month           •   $99.99 / month
•   Band...
Change the Rules




Question?
Upcoming SlideShare
Loading in...5
×

Lap Around Sql Azure

919

Published on

This presentation provides an overview of SQL Azure (DevDays 2010)

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
919
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
15
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Lap Around Sql Azure"

  1. 1. Change the Rules Lap around SQL Azure Anko Duizer
  2. 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
  3. 3. Change the Rules INTRODUCTION
  4. 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. 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. 6. Change the Rules Cloud Data in the application cloud On-premises application
  7. 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
  8. 8. Change the Rules SQL AZURE
  9. 9. Change the Rules SQL Azure • Mangebility • Scalability • Developer empowerment
  10. 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. 11. Change the Rules Account Server=server1.data.database.windows.net Database=testDB Login=nigele[@server1] (maps to testuser) Server Database
  12. 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. 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. 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. 15. Change the Rules SQL Azure deployment Web Portal (API) DB SQL Azure Script TDS
  16. 16. Change the Rules SQL Azure - Accessing databases Web Portal (API) Your SQL Azure App TDS Change connection string
  17. 17. Change the Rules Database replicas Replica 1 Replica 2 DB Replica 3
  18. 18. Change the Rules Database monitoring & recovery Web Portal (API) Your App ! SQL Azure TDS
  19. 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. 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
  21. 21. Change the Rules PROGRAMMING SQL AZURE
  22. 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. 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. 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. 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. 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
  27. 27. Change the Rules FUTURE
  28. 28. Change the Rules Planned • Partitioned databases • Spatial data • Security AD, WLID, etc • Increased database size
  29. 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
  30. 30. Change the Rules USEFUL?
  31. 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. 32. Change the Rules Application/ Browser App Code Azure
  33. 33. Change the Rules Application/ Browser How much App Code data is transfered? On premise Azure
  34. 34. Change the Rules Source SSIS On premise backup Azure
  35. 35. Change the Rules Application/ Browser App Code Z X Y Azure
  36. 36. Change the Rules Azure Sync framework Data Source hub Sync framework On-premise/ department Source Laptop
  37. 37. Change the Rules NOT USEFUL!
  38. 38. Change the Rules Application/ Browser Too much App Code data transferred On premise Azure
  39. 39. Change the Rules SSIS On premise Source destination Azure Azure
  40. 40. Change the Rules Is it cheaper?
  41. 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
  42. 42. Change the Rules Question?
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×