lap around sql azure
DESCRIPTION
This presentation provides an overview of SQL Azure (DevDays 2010)TRANSCRIPT
![Page 1: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/1.jpg)
Change the Rules
Lap around SQL Azure
Anko Duizer
![Page 2: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/2.jpg)
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
![Page 3: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/3.jpg)
Change the Rules
INTRODUCTION
![Page 4: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/4.jpg)
Change the Rules
Place
Type
Service
Data platform: device to cloud
Mobile/Desktop
AnalysisCaching
Integration
Sync
Search
Data ServicesServerDesktop
RelationalBLOB
QueryBackup
Load
MultiDim
Mega-server
InMemory
FileXML
ReportingMiningProtection
RDBMS
![Page 5: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/5.jpg)
Change the Rules
Business AnalyticsReporting 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
![Page 6: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/6.jpg)
Change the Rules
Cloud
application
On-premises
application
Data in the
cloud
![Page 7: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/7.jpg)
Change the Rules
Reso
urc
es
Dedicated
Shared
Low HighControl
SQL Azure
Value Props:
Hosted
On-premise
Value Props:
Value Props:
Roll-your-own HA/scale
![Page 8: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/8.jpg)
Change the Rules
SQL AZURE
![Page 9: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/9.jpg)
Change the Rules
SQL Azure
• Mangebility
• Scalability
• Developer empowerment
![Page 10: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/10.jpg)
Change the Rules
SQL Azure
TDS + TSQL Model
Web App
SQL Client*
Windows Azure
Browser
application
Application
REST Client
REST (Astoria)
ADO.Net + EF
Application
SQL Client*
Cloud
HTTP
HTTP
+R
EST
TD
S
Clo
ud
ODBC, OLEDB,
ADO.Net PHP,
Ruby, …
![Page 11: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/11.jpg)
Change the Rules
Account
Server
Database
Server=server1.data.database.windows.netDatabase=testDBLogin=nigele[@server1] (maps to testuser)
![Page 12: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/12.jpg)
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
![Page 13: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/13.jpg)
Change the Rules
Architecture
Machine 5
SQL Instance
SQL DBUser
DB1
User
DB2
User
DB3
User
DB4
Scalability and Availability: Fabric, Failover, Replication, and Load balancing
Provisioning (databases, accounts, roles, …, metering, and billing
Machine 6
SQL Instance
SQL DBUser
DB1
User
DB2
User
DB3
User
DB4
Machine 4
SQL Instance
SQL DBUser
DB1
User
DB2
User
DB3
User
DB4
scalability and availability: fabric, failover, replication, and load balancing
![Page 14: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/14.jpg)
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
![Page 15: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/15.jpg)
Change the Rules
SQL Azure deployment
Web Portal
(API)
SQL Azure
TDS
DB
Script
![Page 16: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/16.jpg)
Change the Rules
SQL Azure - Accessing databases
Web Portal
(API)
SQL Azure
TDS
Your
App
Change connection string
![Page 17: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/17.jpg)
Change the Rules
Database replicas
Replica 1
Replica 2
Replica 3
DB
![Page 18: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/18.jpg)
Change the Rules
Database monitoring & recoveryWeb Portal
(API)
SQL Azure
TDS
Your
App !
![Page 19: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/19.jpg)
Change the Rules
Database BackupsFailure Scenario Solution When Responsible Party
HW and Media
failures
Multiple replicas of all databases with automatic
failover. System backups for additional protection
Today SQL Azure - Built-in to
the base serviceXCustomer application or
administrator errors leading to data
loss
Use BCP, SSIS or other custom tools to backup data Today Customer
Database clone to create on-demand, backups of
databases in the local or remote SQL Azure region
• Cloning is done with transactional consistency
• When clone operation is complete the replica is
accessible as a normal database
1H 2010 Customer
Continuous backup option with point-in-time restore
capabilities
• Configurable retention and lag period
• Backups available for read operations
• Local or remote region
2H 2010
1. Customer enables
and configures it.
2. Service will
maintain it
![Page 20: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/20.jpg)
Change the Rules
South central US
abc.database.windows.net
Dev1Master
xyz.database.windows.net
prod1Master
CREATE DATABASE xyz.prod2clone AS CLONE OF xyz.prod2 CREATE DATABASE efg.prod2clone AS CLONE OF xyz.prod2
prod2
clone
prod2
clone
prod2
clone
prod2
clone
North central US
efg.database.windows.net
DR1 Masterprod2
clone
prod2
clone
CREATE DATABASE abc.prod2clone AS CLONE OF xyz.prod2
Database clone
Prod2
![Page 21: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/21.jpg)
Change the Rules
PROGRAMMING SQL AZURE
![Page 22: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/22.jpg)
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
![Page 23: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/23.jpg)
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
![Page 24: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/24.jpg)
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, …
![Page 25: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/25.jpg)
Change the Rules
Sample of SQL compatibilityv1
• Tables, indexes and views
• Stored procedures
• Triggers
• Constraints
• Table variables, session temp tables (#t)
vNext
• Distributed transactions
• Distributed query
• CLR
• Service broker
• Spatial
• Physical server or catalog DDL and views
![Page 26: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/26.jpg)
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
![Page 27: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/27.jpg)
Change the Rules
FUTURE
![Page 28: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/28.jpg)
Change the Rules
Planned
• Partitioned databases
• Spatial data
• Security AD, WLID, etc
• Increased database size
![Page 29: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/29.jpg)
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
![Page 30: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/30.jpg)
Change the Rules
USEFUL?
![Page 31: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/31.jpg)
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
![Page 32: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/32.jpg)
Change the Rules
Azure
App Code
Application/
Browser
![Page 33: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/33.jpg)
Change the Rules
On premise
Azure
App Code
Application/
Browser
How much data is
transfered?
![Page 34: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/34.jpg)
Change the Rules
On premise
Azure
backup
SSIS
Source
![Page 35: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/35.jpg)
Change the Rules
Azure
Y
App Code
Application/
Browser
XZ
![Page 36: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/36.jpg)
Change the Rules
Laptop
On-premise/ department
Azure
Data
hubSource
Source
Sync framework
Syn
c fram
ew
ork
![Page 37: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/37.jpg)
Change the Rules
NOT USEFUL!
![Page 38: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/38.jpg)
Change the Rules
On premise
Azure
App Code
Application/
Browser
Too much data
transferred
![Page 39: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/39.jpg)
Change the Rules
On premise
Azure
SSIS
Source
Azure
destination
![Page 40: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/40.jpg)
Change the Rules
Is it cheaper?
![Page 41: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/41.jpg)
Change the Rules
• 1GB Database
• $9.99 / month
• Bandwidth– $0.10 /GB inbound
– $0.15 /GB outbound
• 10GB Database
• $99.99 / month
• Bandwidth– $0.10 /GB inbound
– $0.15 /GB outbound
![Page 42: Lap Around Sql Azure](https://reader034.vdocuments.mx/reader034/viewer/2022051400/54c0e5da4a79597d498b4581/html5/thumbnails/42.jpg)
Change the Rules
Question?