Download presentation
Presentation is loading. Please wait.
Published bySherman Lawrence Modified over 9 years ago
1
virtual techdays INDIA │ 18-20 august 2010 SQL Azure – Tips and Tricks Ramaprasanna Chellamuthu │ Developer Evangelist, Microsoft
2
Introduction to SQL Azure Why SQL Azure? Architecture Application Topologies Provisioning Deployment Demo Let’s see SQL Azure in action SQL Azure Tips and Tricks virtual techdays INDIA │ 18-20 august 2010 S E S S I O N A G E N D A
3
Database Choices Resources Dedicated Shared Low High “Friction”/Control SQL Azure (RDBMS) Hosted On-premise
4
SQL Azure Database The first and only true relational database as a service Subtitle color
5
SQL Azure Network Topology Application Load Balancer TDS (tcp:1433) Applications use standard SQL client libraries: ODBC, ADO.Net, … Load balancer forwards ‘sticky’ sessions to TDS protocol tier Data Node Gateway Scalability and Availability: Fabric, Failover, Replication and Load balancing
6
V1 Application Topologies MS Datacenter SOAP/REST HTTP/S SQL Azure access from within MS Datacenter (Azure compute – ADO.NET) Windows Azure T-SQL (TDS) MS Datacenter T-SQL (TDS) App Code / Tools SQL Azure access from outside MS Datacenter (On-premises – ADO.NET) App Code (ASP.NET) ADO.NET Data Svcs/REST - EF HTTP/S Code Far SQL Data Services Application/ Browser Code Near
7
Architecture Shared infrastructure at SQL database and below – Request routing, security and isolation Scalable HA technology provides the glue – Automatic replication and failover Provisioning, metering and billing infrastructure Machine 5 SQL Instance SQL DB User DB1 User DB2 User DB3 User DB4 Scalability and Availability: Fabric, Failover, Replication, and Load balancing SDS Provisioning (databases, accounts, roles, …, Metering, and Billing Machine 6 SQL Instance SQL DB User DB1 User DB2 User DB3 User DB4 Machine 4 SQL Instance SQL DB User DB1 User DB2 User DB3 User DB4 Scalability and Availability: Fabric, Failover, Replication, and Load balancing
8
Database Replicas Replica 1 Replica 2 Replica 3 DB Replica 4 !
9
SQL Azure Deployment SQL Azure TDS Gateway SQL Azure TDS Gateway DB Script
10
SQL Azure Accessing databases Your App Change Connection String SQL Azure TDS Gateway SQL Azure TDS Gateway
11
Throttling MSDN Use traditional SQL Server best practices CTP cluster has throttling limits turned up to allow for building logic into apps for handling this case Build in retry logic especially if you expect very high throughput demands Consider scaling out for high throughput scenarios
12
Scaling Out 1 x 10GB database 10 x 1GB databases
13
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 Security model is 100% compatible with on-premise SQL
14
Database Editions Two SQL Azure Database SKUs: Web & Business – Web Edition: 1 GB @ $9.99/month | 5 GB @ $49.95/month – Business Edition: Up to 50 GB @ $99.99/10 GB/month 10 GB @ $99.99 | 20 GB @ $199.98 | 30 GB @ $299.97 | 40 GB @ $399.96 | 50 GB @ $499.95 You specify Web or Business Edition – Web: EDITION = Web – Business: EDITION = Business You specify MAXSIZE – Web: MAXSIZE = 1GB| 5GB – Business: MAXSIZE = 10GB | 20GB | 30GB | 40GB | 50GB – This is the size we will not let you grow beyond – You will be charged for the actual (peak) size (in any one day) CREATE DATABASE foo1 (EDITION='business', MAXSIZE=50GB); CREATE DATABASE foo2 (EDITION='business', MAXSIZE=30GB); CREATE DATABASE bar1 (EDITION='web', MAXSIZE=5GB); CREATE DATABASE bar2 (EDITION='web'); -- Defaults to 1GB
15
virtual techdays INDIA │ 18-20 august 2010 SQL Azure in Action Ramaprasanna Chellamuthu │ Developer Evangelist, Microsoft
16
virtual techdays INDIA │ 18-20 august 2010 SQL Azure - Tips and Tricks Ramaprasanna Chellamuthu │ Developer Evangelist, Microsoft
17
Key Takeaways Integrated part of the SQL Data Platform Leverage you existing SQL Server knowledge and tools SQL Azure is the data platform of the Windows Azure Platform
18
virtual techdays THANK YOU ! │ 18-20 august 2010 http://twitter.com/ramaprasanna http://blogs.msdn.com/ramaprasanna
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.