Microsoft Azure By: Rob Brommer 6-10-2011
Windows Azure Platform 6-10-2011
Windows Azure 6-10-2011 Cloud Operating System
Windows Azure Service Architecture 6-10-2011 Storage LB Windows Azure Data Center LB LB The Internet The Internet via TCP or HTTP
Worker Role Patterns Queue Polling Worker Poll and Pop Messages within while(true) loop E.g. Map/Reduce pattern, background image processing Listening Worker Role Create TcpListener or WCF Service Host E.g. Run a .NET SMTP server or WCF Service External Process Worker Role OnStart or Run method executes Process.Start() Startup Task installs or executes background/foreground process E.g. Run a database server, web server, distributed cache 6-10-2011
Web Role All features of a worker role + IIS 7 or 7.5 ASP.NET 3.5 SP1 or 4.0 – 64bit Hosts Webforms or MVC FastCGI applications (e.g. PHP) Multiple Websites Http(s) 6-10-2011
Virtual Machine Role Provided to help you move applications to Windows Azure Enables you to have full control over the OS Image Create your VHD locally Upload the VHD to storage Deploy a service package that uses the custom OS image The role is your VM – Specify <OsImage href=&quot;20101020BaseVM.vhd&quot; /> in the .cscfg Key considerations Image must be Windows Server 2008 R2 Enterprise Designed for long or non-automated installs No durability of OS image You configure and maintain the Operating System Currently available as a limited beta 6-10-2011
VM Size in Windows Azure 6-10-2011 Compute Instance Size CPU Memory Instance Storage I/O Performance Cost Per Hour Extra Small 1.0 GHz 768 MB 20 GB Low $0.04 Small 1.6 GHz 1.75 GB 225 GB Moderate $0.12 Medium 2 x 1.6 GHz 3.5 GB 490 GB High $0.24 Large 4 x 1.6 GHz 7 GB 1,000 GB High $0.48 Extra Large 8 x 1.6 GHz 14 GB 2,040 GB High $0.96
Azure Storage 6-10-2011 Blobs Tables Queues Storage HTTP
Windows Azure Storage Account User specified globally unique account name Can choose geo-location to host storage account US – “North Central” and “South Central” Europe – “North” and “West” Asia – “East” and “Southeast” Can CDN Enable Account Blobs delivered via 18 global CDN nodes Can co-locate storage account with compute account Explicitly or using affinity groups Accounts have two independent 512 bit shared secret keys 100TB per account 6-10-2011
Blob Storage Concepts 6-10-2011 contoso images PIC01.JPG videos http://<account>. blob .core.windows.net/<container>/<blobname> Block/Page Block/Page PIC02.JPG Blob Container Account VID1.AVI Pages/ Blocks
How Windows Azure Drives Works 6-10-2011 Drive is a formatted page blob stored in blob service Mount obtains a blob lease  Mount specifies amount of local storage for cache NTFS flushed/unbuffered writes commit to blob store before returning to app NTFS reads can be served from local cache or from blob store (cache miss) Windows Azure Blob Service Application Lease Drive X:
Table Storage Concepts 6-10-2011 Entity Table Account contoso customers Name =… Email = … Name =… EMailAdd= … photos Photo ID =… Date =… Photo ID =… Date =…
Table Storage 6-10-2011
Queue Storage Concepts 6-10-2011 Message Queue Account order processing customer ID   order ID   http://… customer ID   order ID   http://… adventureworks
Loosely Coupled Workflow with Queues 6-10-2011 Enables workflow between roles Load work in a queue Producer can forget about message once it is in queue Many workers consume the queue For extreme throughput (>500 tps)  Use multiple queues Read messages in batches Multiple work items per message Queue Input Queue (Work Items)
SQL Azure 6-10-2011
SQL Azure Application Topologies 6-10-2011
Database Replicas 6-10-2011 Replica 1 Replica 2 Replica 3 DB Replica 4
Service Provisioning Model 6-10-2011 Each  account  has zero or more  logical servers Provisioned via a common portal Establishes a billing instrument Each  logical server  has one or more  databases Contains metadata about database & usage Unit of authentication, geo-location, billing, reporting Generated DNS-based name Each  database  has standard SQL objects Users, Tables, Views, Indices, etc Unit of consistency Account Server Database
SQL Azure (Costs) 6-10-2011 Size/Meter Web Edition Monthly Charges Business Edition Monthly Charges Up to 1 GB relational database $9.99 - Up to 5 GB relational database $49.95 - Up to 10 GB relational database - $99.99 Up to 20 GB relational database - $199.98 Up to 30 GB relational database - $299.97 Up to 40 GB relational database - $399.96 Up to 50 GB relational database - $499.95
Windows Azure CDN 6-10-2011 Windows Azure Storage Create Storage Account via Portal Enable CDN for Storage account Enables a better user experience, global reach,  increased engagement, more revenue  Broad reach with 22+ locations globally  Browse to cdn.customer.com GET foo.jpg
Windows Azure AppFabric 6-10-2011
AppFabric Caching Distributed, in-memory application cache for Windows Azure apps Primary use cases Session state provider for Windows Azure applications Cache layer for Windows Azure applications that leverage storage in SQL Azure Databases or Windows Azure storage Provided as a service  Provision, configure, and use No installation or management of machines/instances Dynamically increase and decrease cache size as needed Same programming model for both cloud and on-premises 6-10-2011
Caching (Costs) 6-10-2011 Size/Meter Monthly Charges 128 MB cache $45.00 256 MB cache $55.00 512 MB cache $75.00 1 GB cache $110.00 2 GB cache $180.00 4 GB cache $325.00
Service Bus 6-10-2011
Service Bus (Costs) 6-10-2011 Size/Meter Monthly Charges Pay-as-you-go (1 connection) $3.99 per connection 5 Connections $9.95 25 Connections $49.75 100 Connections $199.00 500 Connections $995.00
Access Control Claims based Supports: Active Directory Windows Live ID Google Yahoo Facebook 6-10-2011
Access Control (Costs) 6-10-2011 Size/Meter Monthly Charges 100,000 Transactions $1.99

Microsoft Azure, door Rob Brommer op de 4DotNet Developers Day

  • 1.
    Microsoft Azure By:Rob Brommer 6-10-2011
  • 2.
  • 3.
    Windows Azure 6-10-2011Cloud Operating System
  • 4.
    Windows Azure ServiceArchitecture 6-10-2011 Storage LB Windows Azure Data Center LB LB The Internet The Internet via TCP or HTTP
  • 5.
    Worker Role PatternsQueue Polling Worker Poll and Pop Messages within while(true) loop E.g. Map/Reduce pattern, background image processing Listening Worker Role Create TcpListener or WCF Service Host E.g. Run a .NET SMTP server or WCF Service External Process Worker Role OnStart or Run method executes Process.Start() Startup Task installs or executes background/foreground process E.g. Run a database server, web server, distributed cache 6-10-2011
  • 6.
    Web Role Allfeatures of a worker role + IIS 7 or 7.5 ASP.NET 3.5 SP1 or 4.0 – 64bit Hosts Webforms or MVC FastCGI applications (e.g. PHP) Multiple Websites Http(s) 6-10-2011
  • 7.
    Virtual Machine RoleProvided to help you move applications to Windows Azure Enables you to have full control over the OS Image Create your VHD locally Upload the VHD to storage Deploy a service package that uses the custom OS image The role is your VM – Specify <OsImage href=&quot;20101020BaseVM.vhd&quot; /> in the .cscfg Key considerations Image must be Windows Server 2008 R2 Enterprise Designed for long or non-automated installs No durability of OS image You configure and maintain the Operating System Currently available as a limited beta 6-10-2011
  • 8.
    VM Size inWindows Azure 6-10-2011 Compute Instance Size CPU Memory Instance Storage I/O Performance Cost Per Hour Extra Small 1.0 GHz 768 MB 20 GB Low $0.04 Small 1.6 GHz 1.75 GB 225 GB Moderate $0.12 Medium 2 x 1.6 GHz 3.5 GB 490 GB High $0.24 Large 4 x 1.6 GHz 7 GB 1,000 GB High $0.48 Extra Large 8 x 1.6 GHz 14 GB 2,040 GB High $0.96
  • 9.
    Azure Storage 6-10-2011Blobs Tables Queues Storage HTTP
  • 10.
    Windows Azure StorageAccount User specified globally unique account name Can choose geo-location to host storage account US – “North Central” and “South Central” Europe – “North” and “West” Asia – “East” and “Southeast” Can CDN Enable Account Blobs delivered via 18 global CDN nodes Can co-locate storage account with compute account Explicitly or using affinity groups Accounts have two independent 512 bit shared secret keys 100TB per account 6-10-2011
  • 11.
    Blob Storage Concepts6-10-2011 contoso images PIC01.JPG videos http://<account>. blob .core.windows.net/<container>/<blobname> Block/Page Block/Page PIC02.JPG Blob Container Account VID1.AVI Pages/ Blocks
  • 12.
    How Windows AzureDrives Works 6-10-2011 Drive is a formatted page blob stored in blob service Mount obtains a blob lease Mount specifies amount of local storage for cache NTFS flushed/unbuffered writes commit to blob store before returning to app NTFS reads can be served from local cache or from blob store (cache miss) Windows Azure Blob Service Application Lease Drive X:
  • 13.
    Table Storage Concepts6-10-2011 Entity Table Account contoso customers Name =… Email = … Name =… EMailAdd= … photos Photo ID =… Date =… Photo ID =… Date =…
  • 14.
  • 15.
    Queue Storage Concepts6-10-2011 Message Queue Account order processing customer ID order ID http://… customer ID order ID http://… adventureworks
  • 16.
    Loosely Coupled Workflowwith Queues 6-10-2011 Enables workflow between roles Load work in a queue Producer can forget about message once it is in queue Many workers consume the queue For extreme throughput (>500 tps) Use multiple queues Read messages in batches Multiple work items per message Queue Input Queue (Work Items)
  • 17.
  • 18.
    SQL Azure ApplicationTopologies 6-10-2011
  • 19.
    Database Replicas 6-10-2011Replica 1 Replica 2 Replica 3 DB Replica 4
  • 20.
    Service Provisioning Model6-10-2011 Each account has zero or more logical servers Provisioned via a common portal Establishes a billing instrument Each logical server has one or more databases Contains metadata about database & usage Unit of authentication, geo-location, billing, reporting Generated DNS-based name Each database has standard SQL objects Users, Tables, Views, Indices, etc Unit of consistency Account Server Database
  • 21.
    SQL Azure (Costs)6-10-2011 Size/Meter Web Edition Monthly Charges Business Edition Monthly Charges Up to 1 GB relational database $9.99 - Up to 5 GB relational database $49.95 - Up to 10 GB relational database - $99.99 Up to 20 GB relational database - $199.98 Up to 30 GB relational database - $299.97 Up to 40 GB relational database - $399.96 Up to 50 GB relational database - $499.95
  • 22.
    Windows Azure CDN6-10-2011 Windows Azure Storage Create Storage Account via Portal Enable CDN for Storage account Enables a better user experience, global reach, increased engagement, more revenue Broad reach with 22+ locations globally Browse to cdn.customer.com GET foo.jpg
  • 23.
  • 24.
    AppFabric Caching Distributed,in-memory application cache for Windows Azure apps Primary use cases Session state provider for Windows Azure applications Cache layer for Windows Azure applications that leverage storage in SQL Azure Databases or Windows Azure storage Provided as a service Provision, configure, and use No installation or management of machines/instances Dynamically increase and decrease cache size as needed Same programming model for both cloud and on-premises 6-10-2011
  • 25.
    Caching (Costs) 6-10-2011Size/Meter Monthly Charges 128 MB cache $45.00 256 MB cache $55.00 512 MB cache $75.00 1 GB cache $110.00 2 GB cache $180.00 4 GB cache $325.00
  • 26.
  • 27.
    Service Bus (Costs)6-10-2011 Size/Meter Monthly Charges Pay-as-you-go (1 connection) $3.99 per connection 5 Connections $9.95 25 Connections $49.75 100 Connections $199.00 500 Connections $995.00
  • 28.
    Access Control Claimsbased Supports: Active Directory Windows Live ID Google Yahoo Facebook 6-10-2011
  • 29.
    Access Control (Costs)6-10-2011 Size/Meter Monthly Charges 100,000 Transactions $1.99