In this presentation we review SQL Azure Federation and Scalability.
Best Regards,
Dr. Eduardo Castro Martinez
Microsoft SQL Server MVP
http://ecastrom.blogspot.com
http://tinyurl.com/comunidadwindows
Testing tools and AI - ideas what to try with some tool examples
SQL Azure Federation and Scalability
1. Ing. Eduardo Castro, PhD
ecastro@grupoasesor.net
http://ecastrom.blogspot.com
http://comunidadwindows.org
http://tiny.cc/comwindows
2.
3. Microsoft SQL Azure
Information Platform as a Service
Managed Service Scale on Demand Innovate Faster
Platform capabilities delivered as a service Database as a utility with pay as you Innovate with new data application
(Database, Data Sync, Reporting…) grow scaling patterns
Reduced complexity, greater flexibility Rely on Business-ready SLAs Build cloud-based data solutions on a
familiar relational model
Easy provisioning and deployment Enable multi-tenant solutions
Build on existing developer skills and
Auto High availability and fault tolerant Manage multiple servers familiar Transact-SQL syntax
4.
5.
6. A relational DB in the cloud
SQL Azure Database
Data Hub
Others (Future)
.NET Services
Applications SQL Services
Relational database as a service
Highly available, automatically maintained
Live Services
Windows Azure
Extension of the SQL Server Data Platform
Applications
Windows Windows Windows Others
Server Vista/XP Mobile
7. Single Logical Multiple Physical
Database Replicas
Replica 1
Replica 2
DB
Replica 3
8. Reference Data Sync
Data
Symmetric Programming Model Data Hub Aggregation
• Initial services – core RDBMS capabilities with SQL Azure Database, Data Sync
• Future Offerings
• Additional data platform capabilities: Reporting, BI
• New services: Reference Data
9. Clear Feedback: “I want a database in the Cloud”
Focus on combining the best features of SQL Server running at scale
with low friction
10. Application Application Application
Browser Browser
ODBC, OLEDB, ADO.N
Application Application
REST Client REST Client SQL Client* et PHP, Ruby, …
Cloud Cloud
Evolves
HTTP+REST
HTTP+REST
HTTP
HTTP
TDS
Windows Azure Windows Azure
Web App REST (Astoria) Web App
Data Center
Data Center
REST Client ADO.Net + EF SQL Client*
REST/SOAP + ACE Model TDS + TSQL Model
SDS Current SDS Next
* Client access enabled using TDS for ODBC,
ADO.Net, OLEDB, PHP-SQL, Ruby, …
11. SQL Azure Database
Others (Future)
SQL Azure
Applications
Windows Azure AppFabric
Windows Azure
Applications
Windows Others
25. Challenges Today
“Capacity Bursting“
Elastic scale – database as a
service
Capacity
Average
Usage
Time
Pay as you grow and shrink
Compute
# of Hr‟s
Average Usage Easy to provision and manage
database
No hardware, no manual
Promotions, events, ticket selling
businesses are “bursts – bound” by database administration required
nature
Capacity constraints limit business agility
High costs of entry into new business
Difficult to roll out extra capacity quickly
Idle capacity “off-bursts” is cost
prohibitive
26. T1 T2 T3 T4 T5
T6 T7 T8 T9 T10 All my data
is handled by
T11
one DB on one server
T12 T13 T14 T15
T16 T17 T18 T19 T20
28. − Provisioning Covered by
− Growing and shrinking capacity SQL Azure
today
− Managing
− Upgrading, patching, HA for lots of databases
− Routing
− Where is the directory?
− How to scale it and use it? Coming up in
SQL Azure:
− Partition Management
Federations
− Splitting and Merging, without loss of availability
− Fan-out
30. Root
Federation “CustData”
(Federation Key: CustID)
Member: [min, 100)
AU AU AU
PK=5 PK=25 PK=35
Member: [100, 488)
AU AU AU
PK=105 PK=235 PK=365
Member: [488, max)
AU AU AU
PK=555 PK=2545 PK=3565
37. SalesDB
Products
Federation “Orders_Fed”
(Federation Key: CustID)
Member: [min, max)
orders zipcode
Member: [min, 100)
ord
zipcode
ers
Member: [100, max)
ord
zipcode
ers
38. Federation Root
houses the
Directory
Split the Federation
Member into two at
the customerid 100
boundary
COS222 What‟s New in Microsoft SQL Azure,
39. Use Federation
Member
that contains
customerids < 100
Use Federation
Member
that contains
customerids > 100
40. App
Member: [min, 100)
AU AU AU
PK=5 PK=25 PK=56
zipcode
41.
42.
43.
44.
45.
46.
47.
48.
49.
50. xyz.database.windows.net efg.database.windows.net
Master prod1 Prod2 prod2
DR1 Master
clone
copy
prod2
clone
copy
abc.database.windows.net
prod2
Master Dev1
clone
copy
South Central US North Central US
CREATE DATABASE efg.prod2clone
abc.prod2clone
CREATE DATABASE xyz.prod2clone AS COPY OF xyz.prod2
AS COPY OF xyz.prod2
51. CTP1
SQL Azure
Database
Data Sync Service
Retail Stores For SQL Azure Remote Offices
Sync
CTP2
On-Premises (Headquarters)