22
Getting Your Nerd on with Microsoft’s Cloud data services Scott Klein Technical Evangelist Microsoft Corporation

Getting Your Nerd on with Microsoft’s Cloud data services

  • Upload
    ajay

  • View
    42

  • Download
    1

Embed Size (px)

DESCRIPTION

Getting Your Nerd on with Microsoft’s Cloud data services. Scott Klein Technical Evangelist Microsoft Corporation. Get in touch. www.scottLklein.com. [email protected]. @ sqlscott. A Continuous Offering From Private To Public Cloud. Virtual. Physical. SaaS. IaaS. PaaS. - PowerPoint PPT Presentation

Citation preview

Page 1: Getting Your Nerd on with Microsoft’s Cloud data services

Getting Your Nerd on with Microsoft’s Cloud data servicesScott KleinTechnical EvangelistMicrosoft Corporation

Page 2: Getting Your Nerd on with Microsoft’s Cloud data services

Get in touch

www.scottLklein.com

[email protected]@sqlscott

Page 3: Getting Your Nerd on with Microsoft’s Cloud data services

SaaSPhysical Virtual

A Continuous Offering From Private To

Public Cloud

IaaS PaaS

Page 4: Getting Your Nerd on with Microsoft’s Cloud data services

Agenda• Windows Azure SQL Database

• Architecture• Application Connectivity• Scalability

• Windows Azure Table Storage• Architecture• Querying

• Best Practices and Considerations• Cost• Transactions

Page 5: Getting Your Nerd on with Microsoft’s Cloud data services

Windows Azure SQL Database

Page 6: Getting Your Nerd on with Microsoft’s Cloud data services

How It WorksArchitectureClient Layer - Used by application to communicate directly with SQL Database.Services Layer – Gateway between Client layer and Platform layer.Platform Layer – Includes physical servicers and services that support the Services layer.Infrastructure Layer – IT administration of the physical HW and OS.

Infrastructure Layer

PHP WCF Data Services

SQL ServerApplications

and Tools

ODBC ADO.NETTabular Data Stream (TDS)

Client Layer

Services Layer

Provisioning

Billing and Metering

Connection Routing

Provisioning

Billing and Metering

Connection Routing

Provisioning

Billing and Metering

Connection Routing

TDS+SSL

Platform Layer

SQL Server

SQL Database

FabricManagemen

t Services

SQL Server

SQL Database

FabricManagemen

t Services

SQL Server

SQL Database

FabricManagemen

t Services

Page 7: Getting Your Nerd on with Microsoft’s Cloud data services

Application ConnectivityConsiderations And Best Practices1. login: [login]@[server]2. Idle connections3. Long running transactions4. DoS guard5. Failover events6. Throttling7. Connection pooling and Retry logic8. Latency introduced for updates9. No cross-database dependencies

Page 9: Getting Your Nerd on with Microsoft’s Cloud data services

ChallengesDefining the TenantEstablishing Tenant’s surrogate keyEstablish Sharding Strategy (Range / Point)Elastic Scalability (Splits/Merges/Tenant Moving)Application Lifecycle Management (Dev; Test; Deploy; Upgrades)Overcoming limitations of existing tools & available featuresTransient nature of connectivity

Page 10: Getting Your Nerd on with Microsoft’s Cloud data services

SQL Database

Demo Time!

Page 11: Getting Your Nerd on with Microsoft’s Cloud data services

Windows Azure Tables

Page 12: Getting Your Nerd on with Microsoft’s Cloud data services

Azure Storage Architecture

Page 13: Getting Your Nerd on with Microsoft’s Cloud data services

Table Storage ConceptsEntityTableAccount

contoso

Name =…Email = …

Name =…EMailAdd=

customers

Photo ID =…Date =…

photos

Photo ID =…Date =…

Page 14: Getting Your Nerd on with Microsoft’s Cloud data services

Table Details

InsertUpdate Merge – Partial updateReplace – Update entire entityUpsertDeleteQueryEntity Group TransactionsMultiple CUD Operations in a single atomic transaction

Create, Query, DeleteTables can have metadata

Not an RDBMS! Table

Entities

Page 15: Getting Your Nerd on with Microsoft’s Cloud data services

No Fixed Schema

FIRST LAST BIRTHDATE

Wade Wegner 2/2/1981

Nathan Totten 3/15/1965

Nick Harris May 1, 1976

FAV SPORT

Canoeing

Page 16: Getting Your Nerd on with Microsoft’s Cloud data services

Querying

FIRST LAST BIRTHDATE

Wade Wegner 2/2/1981

Nathan Totten 3/15/1965

Nick Harris May 1, 1976

?$filter=Last eq ‘Wegner’

Page 17: Getting Your Nerd on with Microsoft’s Cloud data services

Purpose of the PartitionKeyEntity LocalityEntities in the same partition will be stored togetherEfficient querying and cache localityEndeavour to include partition key in all queries

Entity Group TransactionsAtomic multiple Insert/Update/Delete in same partition in a single transaction

Table ScalabilityTarget throughput – 20,000 tps/partition, several thousand tps/accountWindows Azure monitors the usage patterns of partitionsAutomatically load balance partitionsEach partition can be served by a different storage nodeScale to meet the traffic needs of your table

Page 18: Getting Your Nerd on with Microsoft’s Cloud data services

PARTITIONKEY(CATEGORY)

ROWKEY(TITLE) TIMESTAMP MODELYEAR

Bikes Super Duper Cycle … 2009

Bikes Quick Cycle 200 Deluxe … 2007

… … … …Canoes Whitewater … 2009Canoes Flatwater … 2006PARTITIONKEY(CATEGORY)

ROWKEY(TITLE) TIMESTAMP MODELYEAR

Rafts 14ft Super Tourer … 1999

… … … …

Skis Fabrikam Back Trackers … 2009

… … … …Tents Super Palace … 2008

PARTITIONKEY(CATEGORY)

ROWKEY(TITLE) TIMESTAMP MODELYEAR

Bikes Super Duper Cycle … 2009

Bikes Quick Cycle 200 Deluxe … 2007

… … … …Canoes Whitewater … 2009Canoes Flatwater … 2006Rafts 14ft Super Tourer … 1999… … … …

Skis Fabrikam Back Trackers … 2009

… … … …Tents Super Palace … 2008

Partitions and Partition Ranges

Server ATable = Products

Server BTable = Products

[Canoes - MaxKey)

Server ATable = Products

[MinKey - Canoes)

Page 19: Getting Your Nerd on with Microsoft’s Cloud data services

Windows Azure Tables

Demo Time!

Page 20: Getting Your Nerd on with Microsoft’s Cloud data services

Cool StuffAzure Office Hours (benkotips.com/OfficeHrs)

Live Call-in Radio Show for Developers

Page 21: Getting Your Nerd on with Microsoft’s Cloud data services

Thank You

Page 22: Getting Your Nerd on with Microsoft’s Cloud data services

© 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to

be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.