300 likes | 396 Views
Design considerations for storing data in the Cloud. Eric Nelson Microsoft UK http://bit.ly/ericnel http://twitter.com/ericnel http://ukazure.ning.com. Session Objectives. SQL Azure vs /and Windows Azure Storage Drill into Windows Azure Storage
E N D
Design considerations for storing data in the Cloud Eric Nelson Microsoft UK http://bit.ly/ericnelhttp://twitter.com/ericnel http://ukazure.ning.com
Session Objectives • SQL Azure vs/and Windows Azure Storage • Drill into Windows Azure Storage • Next session: Keith Burns drills into SQL Azure
Windows Azure Platform • Windows Azure – Your code and data • SQL Azure Database – Your relational data • AppFabric* – Your messages Code Data Relational Data
Azure Application = WebRole + Worker Role + Storage Your Service Web Site (ASPX, ASMX, WCF) Web Site (ASPX, ASMX, WCF) Web Role (ASPX, WCF) Queues LB Internet Worker Service Worker Role Blobs LB Tables SQL Azure
Azure Application = WebRole + Worker Role + Storage Your Service 2 Web Site (ASPX, ASMX, WCF) Web Site (ASPX, ASMX, WCF) Web Role (ASPX, WCF) Queues LB Internet Worker Service Worker Role Blobs LB Tables 1 SQL Azure
SQL Azure SQL Azure Database + “Next big thing” http://www.sqlazurelabs.com http://www.mygreatsqlazureidea.com
SQL Azure Application Architectures SQL Azure access from outside SQL Azure access from within Datacenter Application / Tools Application/ Browser WCF Data Svcs/REST - EF HTTP/S SOAP/REST HTTP/S Web Role Windows Azure T-SQL (TDS) T-SQL (TDS) SQL Azure SQL Azure Code Far Code Near
Azure Storage Storage Queues http://<account>.queue.core.windows.net/<queue> Blobs Account http://<account>.blob.core.windows.net/<container> Tables http://<account>.table.core.windows.net/<table>
Queues Messages Queues “Body1” “Body2” ThumbnailJobsQ “Body3”
Blobs Blobs Containers Photo1.png Photo2.png Pictures Photo3.png
Content Delivery Network “Near” London “Near” Sydney Blobs Containers Photo1.png Photo1.png Photo1.png Photo1.png Photo1.png CDN Node CDN Node CDN Node CDN Node CDN Node Photo2.png Pictures “Near” Sydney “Near” London Photo3.png Windows Azure Blob service URL: http://ericnel.blob.core.windows.net/pictures/ Windows Azure CDN URL: http://<guid>.vo.msecnd.net/pictures/
Tables - EAV MyAzureTable1 Entity: Shiny red Car PK, RK, TS, att1, att2, att8 Entity: Blue Bird PK, RK, TS, att1, att4 Entity: 2008 Tax Return PK, RK, TS, att1, att2, att8, att9, att23, att46, att40
Windows Azure Tables • Massively Scalable Tables • Billions of entities (rows) and TBs of data • Automatically scales to thousands of servers as traffic grows • Highly Available • Can always access your data • Durable • Data is replicated at least 3 times
Tables - Capabilities What tables don’t do What tables can do No Group by Store LOTS of stuff Limited Queries No Transactions No Joins Cheap No Referential Integrity Very Scalable Flexible Durable Not relational No Transactions No Aggregations If these are important to you, use SQL Azure
Summary • Important: You have SQL Azure and Windows Azure Storage to take advantage of • SQL Azure has a well known API and behavior • Windows Azure Storage has a new API and behavior • UK Site http://bit.ly/landazure • UK Community http://bit.ly/ukazure / http://ukazure.ning.com • My blog http://bit.ly/ericnel