SlideShare una empresa de Scribd logo
1 de 42
TH03 - Tips & Tricks on
Architecting W indows Azure for
                          Costs
                        Nuno Godinho
                   Cloud Solution Architect


                             Level: Introdutory
About Me
Nuno Filipe Godinho
Cloud Solution Architect @ Aditi
Windows Azure MVP


nunog@aditi.com


http://msmvps.com/blogs/nunogodinho
Twitter: @NunoGodinho
Agenda
•   Compute
•   Bandwidth, Storage & Transactions
•   SQL Azure
•   Customer Awareness
•   Developer Awareness
•   Scenarios
•   Key Takeaways
COMPUTE
Limiting virtual machine count
•   Do you need full capacity 24/7?
    – Probably not, reduce # cpu’s when not used


•   Use Windows Azure Diagnostics API &
    Windows Azure Management API to scale
    (semi) automatically
    – 24 hours x 10 small instances = $28.80/day
    vs.
    – 16 hours x 10 small instances
      + 8 hours x 4 extra-small instances = $20.48/day
Limiting virtual machine count
Don’t Forget
•   Staging environment costs

•   When not in use, undeploy the staging
    environment
    – 24 hours x 5 small instances = $14.4/day
Workers need work!
•   Out of the box, 1 worker role = 1 task
•   Why not spin up processes or threads?
•   Example: You want 20 tasks running
    – Option1: 1 task per worker = 20 workers = ~ 42 EUR/day
    – Option2: 2 tasks per worker = 10 workers = ~ 21 EUR/day
    – Option3: 10 tasks per worker = 2 workers = ~ 4,2 EUR/day
    – Which means ~ 42 EUR / day vs. ~ 4,2 EUR / day = 90%
      savings


•   “Generic workers”: http://research.microsoft.com/en-
    us/downloads/76537edf-9b77-4664-b76b-cf51be506a0d/

•   DON’T FORGET: 2 instances minimum for the SLA
Do you need all of that?




•   1 XL = 2 L = 4 M = 8 S (regarding costs)
•   No need for this memory / disk space?
    – Start small
    – Scale up/down more granularly
IMPORTANT
•   Billing per reserved VM
    – Reserved = deployed / running


•   Billing in staging and production
    – 2 instances staging + 2 instances production = 4
      instances billed


•   Undeploy your VM if not needed
    – Undeploy staging every evening
    – Automate this
Work per hour
•   Billed per clock hour / CPU
•   Keep instances running at least until x:55
•   Don’t deploy at x:50, instead deploy at
    x:55
    – Deploy at x:50 and undeploy at x+1:10
    – 2 hours billed!


•   Don’t deploy every minute
    – = 60 instance hours per hour!
    – Don’t do continuous deployment for every build, but
      accumulate
BAND WIDTH, STORAGE
& TRANSACTIONS
Bandwidth?
•   Simple metric
    – Use more = pay more
    – Use less = pay less
When am I using bandwidth?
•   Data transfers in/out Windows Azure
    – Compute
    – Blobs
    – AppFabric
    – SQL Azure


•   Data transfers between Windows Azure
    regions
    – E.g. North America – Europe
    – IMPORTANT: Keep compute & storage in the same
      region!
Content Delivery Network
•   Content distributed across 24 Node
    servers across the world

•   Storage costs = Storage costs for public
    containers x 2

•   Bandwidth costs = # data in public
    containers x # servers
    – Can be limited by setting cache headers
Data Storage
•   Data you store (non SQL)
    – Tables
    – Blobs
    – Queues


•   Per GB / month

•   Average over full month
    – 10 GB stored for 15 days, 0 GB stored for 15 days = 5
      GB stored for 1 month
Transactions
•   1 transaction = 1 storage operation
•   Billed per 10.000
•   Example: Checking a queue every second
    from 2 workers
    – 172.800 transactions / day
•   Use a back-off mechanism
    – No data? Wait a second
    – Again no data? Wait two seconds
    – Etc.
Transactions
•   Use Service Bus Queues and Notifications

•   Serving 100 images from blob storage
    – High traffic app  high # transactions
    – Choose wisely between blob storage and compute
Diagnostics monitor
•   Writes data to storage account

•   Does not clean up

•   Write often = # transactions

•   Write less = lag in diagnostic data
SQL AZURE
Database editions
Database Size                 Price Per Database Per Month

0 to 100 MB                   Flat $4.995

Greater than 100 MB to 1 GB   Flat $9.99

                              $9.99 for first GB, $3.996 for
Greater than 1 GB to 10 GB
                              each additional GB

                              $45.954 for first 10 GB, $1.998
Greater than 10 GB to 50 GB
                              for each additional GB

                              $125.874 for first 50 GB, $0.999
Great than 50 GB to 150 GB
                              for each additional GB
Billing nuances
•   Based on peak DB size / day
•   Averaged over 1 month
•   Actual database edition size used is billed

•   Examples
    – 0.9 GB in a 5 GB web edition costs 1 GB
      (= $9.99)
    – 1.1 GB in a 5 GB web edition costs 5 GB
      (= $49.95)
Tables & indexes cost money
•   Be careful with them
•   Only define indexes needed
•   Indexing every column & not using it may
    be a waste of money

•   Example
    – If an index does not add speed, lose it
    – If the data relational, go NoSQL
    – Table with 1 GB of “static data” on SQL Azure = $
      9.99, on table/blob storage it costs $ 0.12...
CUSTOMER
AWARENESS
Customer awareness
•   Yes, you can have all you want
•   Yes, you can have it your way




              BUT...
Discuss OpEx!
•   Cost-analyze the requirements
•   Discuss implications & alternatives with
    stakeholders
    – Pay more for user experience?
    – Cheaper alternative experience?
    – Clever solutions?
•   Review the options you considered
•   Write them down & sign off
    – Or you will return to these discussions again and
      again
DEVELOPER
AWARENESS
A code snippet...
  if (Session["culture"].ToString() == "en-US") {
     // .. set to English ...
  }


                      rs       s!
  if (Session["culture"].ToString() == "nl-BE") {

                   pe       st
                lo
    // .. set to Dutch ...
  }

          De ve       ct co
                im pa
  string culture = Session["culture"].ToString();


         ct ly
  if (culture == "en-US") {
      // .. set to English ...

  ir
  }
       e
d if (culture == "nl-BE") {
      // .. set to Dutch ...
  }
Analysing Real World Scenarios

SCENARIOS
Static WebSite

SCENARIO 1
Scenario 1 – Static WebSite

 What to use? Options?
   Blob Storage
   Compute


 Option 1: Blob Storage
   We pay for?
     Storage Space
     Transactions
     Bandwidth In/Out

 Option 2: Compute
   We pay for?
     Compute Hours
     Bandwidth In/Out
Scenario 1 – Static WebSite – v1

  Number of Concurrent Users: 10 / second
  WebSite Storage Space: 0,5 GB
  Average Number of files served per User: 5
  Average file size: 200 KB


  Option 1: Blob Storage
     We pay for?
       Storage Space = 0,5 GB * 0,15 = 0,075 USD
       Transactions = (10 * 5 * 60 * 24 * 30 ) / 10k * 0,01 = 2,16 USD
       Bandwidth In/Out = (10 * 5* 60 * 30 * 0,0002) * 0,15 = 2,7 USD
       Total Costs ~ $ 5

  Option 2: Compute
     We pay for?
       Compute Hours = (2 * 24 * 30) * 0,12 = 172,8 USD
       Transactions = (1 * 5 * 60 * 24 * 30 ) / 10k * 0,01 = 0,216 USD
       Bandwidth In/Out = (10 * 5* 60 * 30 * 0,0002) * 0,15 = 2,7 USD
       Total Costs ~ $ 176
Scenario 1 – Static WebSite – v2
  Number of Concurrent Users: 1000 / second
  WebSite Storage Space: 0,5 GB
  Average Number of files served per User: 5
  Average file size: 200 KB


  Option 1: Blob Storage
     We pay for?
       Storage Space = 0,5 GB * 0,15 = 0,075 USD
       Transactions = (1000 * 5 * 60 * 24 * 30 ) / 10k * 0,01 = 216 USD
       Bandwidth In/Out = (1000 * 5* 60 * 30 * 0,0002) * 0,15 = 270 USD
       Total Costs ~ $ 487

  Option 2: Compute
     We pay for?
       Compute Hours = (2 * 24 * 30) * 0,12 = 172,8 USD
       Transactions = (1 * 5 * 60 * 24 * 30 ) / 10k * 0,01 = 0,216 USD
       Bandwidth In/Out = (1000 * 5* 60 * 30 * 0,0002) * 0,15 = 270 USD
       Total Costs ~ $ 444
Scenario 3 – Static WebSite – v3
  Number of Concurrent Users: 2000 / second
  WebSite Storage Space: 0,5 GB
  Average Number of files served per User: 5
  Average file size: 200 KB


  Option 1: Blob Storage
     We pay for?
       Storage Space = 0,5 GB * 0,15 = 0,075 USD
       Transactions = (2000 * 5 * 60 * 24 * 30 ) / 10k * 0,01 = 432 USD
       Bandwidth In/Out = (2000 * 5* 60 * 30 * 0,0002) * 0,15 = 540 USD
       Total Costs ~ $ 973

  Option 2: Compute
     We pay for?
       Compute Hours = (2 * 24 * 30) * 0,12 = 172,8 USD
       Transactions = (1 * 5 * 60 * 24 * 30 ) / 10k * 0,01 = 0,216 USD
       Bandwidth In/Out = (2000 * 5* 60 * 30 * 0,0002) * 0,15 = 540 USD
       Total Costs ~ $ 714
Application Data Storage

SCENARIO 2
Scenario 2 – Application Data
Storage
•   What to use? Options?
    – SQL Azure
    – Table Storage
    – SQL Azure + Table Storage


•   Assumptions
    – Number of Concurrent Users: 100 / second
    – Database Size: 10 GB
    – Average response size: 200 KB
    – Reference Data Percentage: 20 %
    – History Data Percentage: 30 %
    – Simple Indexed Data Percentage: 40%
    – Highly searched Data Percentage: 10%
Scenario 2 – Application Data
Storage – v1
•   Option 1: SQL Azure
    – We pay for?
      Database Storage = $ 45.954
      Bandwidth Out = (100 * 60 * 30 * 0.0002) * 0,15 = $ 5.4
      Total Cost: $ 51.354
Scenario 2 – Application Data
Storage – v2
•   Option 2: Table Storage
    – We pay for?
      Storage Space = 10 GB * 0,15 = $ 1.5
      Transactions = (100 * 60 * 24 * 30 ) / 10k * 0.01 = $ 4,32
      Bandwidth Out = (100 * 60 * 30 * 0.0002) * 0.15 = $ 5.4
      Total Costs = $ 11.22
Scenario 2 – Application Data
Storage – v3
•   Option 3: SQL Azure + Table Storage
    – We pay for?
      SQL Azure
          Database Storage =1 GB = $ 9.99
          Bandwidth Out = (100 * 60 * 30 * 0.0002) * 0.15 = $ 5.4
      Table Storage
          Storage Space = 9 GB * 0.15 = $ 1.35
          Transactions = (100 * 60 * 24 * 30 ) / 10k * 0.01 = $ 4.32
          Bandwidth Out = (100 * 60 * 30 * 0.0002) * 0,15 = $ 5.4
      Total Costs = $ 26.46
What to remember?

KEY TAKEAWAYS
Key Takeaways
•   Cloud pricing isn’t more complex
    – Just “different”


•   Every component has own characteristics
•   Requirements impact costs
•   Developers impact costs
•   Windows Azure pricing model can improve
    code quality

•   But don’t over-analyze!
Resources
•   Starting point:
    – http://www.windowsazure.com


•   Steve Marx:
    – http://blog.smarx.com


•   Cloud Cover Show
    – http://channel9.msdn.com/Shows/Cloud+Cover


•   Special Thanks to Maarten Balliauw
    – http://blog.maartenballiauw.be
THANK YOU
                 Nuno Godinho
    Cloud Solution Architect @ Aditi


                       nunog@aditi.com
                Twitter: @NunoGodinho

   http://msmvps.com/blogs/nunogodinho

Más contenido relacionado

La actualidad más candente

Netflix on Cloud - combined slides for Dev and Ops
Netflix on Cloud - combined slides for Dev and OpsNetflix on Cloud - combined slides for Dev and Ops
Netflix on Cloud - combined slides for Dev and OpsAdrian Cockcroft
 
(CMP303) ResearchCloud: CfnCluster and Internet2 for Enterprise HPC
(CMP303) ResearchCloud: CfnCluster and Internet2 for Enterprise HPC(CMP303) ResearchCloud: CfnCluster and Internet2 for Enterprise HPC
(CMP303) ResearchCloud: CfnCluster and Internet2 for Enterprise HPCAmazon Web Services
 
20160503 Amazed by AWS | Tips about Performance on AWS
20160503 Amazed by AWS | Tips about Performance on AWS20160503 Amazed by AWS | Tips about Performance on AWS
20160503 Amazed by AWS | Tips about Performance on AWSAmazon Web Services Korea
 
AWS Summit London 2014 | Amazon WorkSpaces (100)
AWS Summit London 2014 | Amazon WorkSpaces (100)AWS Summit London 2014 | Amazon WorkSpaces (100)
AWS Summit London 2014 | Amazon WorkSpaces (100)Amazon Web Services
 
AWS Cloud for HPC and Big Data
AWS Cloud for HPC and Big DataAWS Cloud for HPC and Big Data
AWS Cloud for HPC and Big Datainside-BigData.com
 
Cmg06 utilization is useless
Cmg06 utilization is uselessCmg06 utilization is useless
Cmg06 utilization is uselessAdrian Cockcroft
 
Nuts and bolts of running a popular site in the aws cloud
Nuts and bolts of running a popular site in the aws cloudNuts and bolts of running a popular site in the aws cloud
Nuts and bolts of running a popular site in the aws cloudDavid Veksler
 
Deep Dive on Amazon EC2 Instances - AWS Summit Cape Town 2017
Deep Dive on Amazon EC2 Instances - AWS Summit Cape Town 2017Deep Dive on Amazon EC2 Instances - AWS Summit Cape Town 2017
Deep Dive on Amazon EC2 Instances - AWS Summit Cape Town 2017Amazon Web Services
 
Deep Dive: Amazon EC2 Elastic GPUs - May 2017 AWS Online Tech Talks
Deep Dive: Amazon EC2 Elastic GPUs - May 2017 AWS Online Tech TalksDeep Dive: Amazon EC2 Elastic GPUs - May 2017 AWS Online Tech Talks
Deep Dive: Amazon EC2 Elastic GPUs - May 2017 AWS Online Tech TalksAmazon Web Services
 
Cloud Economics: Optimising for Cost
Cloud Economics: Optimising for CostCloud Economics: Optimising for Cost
Cloud Economics: Optimising for CostAmazon Web Services
 
A Step By Step Guide To Put DB2 On Amazon Cloud
A Step By Step Guide To Put DB2 On Amazon CloudA Step By Step Guide To Put DB2 On Amazon Cloud
A Step By Step Guide To Put DB2 On Amazon CloudDeepak Rao
 
Cloud Computing with .Net
Cloud Computing with .NetCloud Computing with .Net
Cloud Computing with .NetWesley Faler
 
Hadoop and HBase on Amazon Web Services
Hadoop and HBase on Amazon Web Services Hadoop and HBase on Amazon Web Services
Hadoop and HBase on Amazon Web Services Amazon Web Services
 
Deep Dive on Delivering Amazon EC2 Instance Performance
Deep Dive on Delivering Amazon EC2 Instance PerformanceDeep Dive on Delivering Amazon EC2 Instance Performance
Deep Dive on Delivering Amazon EC2 Instance PerformanceAmazon Web Services
 
Azure Serverless Toolbox
Azure Serverless ToolboxAzure Serverless Toolbox
Azure Serverless ToolboxJohan Eriksson
 
How to scale up, out or down in Windows Azure - Webinar
How to scale up, out or down in Windows Azure - WebinarHow to scale up, out or down in Windows Azure - Webinar
How to scale up, out or down in Windows Azure - WebinarCommon Sense
 
Deep Learning with AWS (November 2016)
Deep Learning with AWS (November 2016)Deep Learning with AWS (November 2016)
Deep Learning with AWS (November 2016)Julien SIMON
 
Deep Dive on Delivering Amazon EC2 Instance Performance
Deep Dive on Delivering Amazon EC2 Instance PerformanceDeep Dive on Delivering Amazon EC2 Instance Performance
Deep Dive on Delivering Amazon EC2 Instance PerformanceAmazon Web Services
 
Netflix Cloud Platform Building Blocks
Netflix Cloud Platform Building BlocksNetflix Cloud Platform Building Blocks
Netflix Cloud Platform Building BlocksSudhir Tonse
 
How to scale up, out or down in Windows Azure
How to scale up, out or down in Windows AzureHow to scale up, out or down in Windows Azure
How to scale up, out or down in Windows AzureCommon Sense
 

La actualidad más candente (20)

Netflix on Cloud - combined slides for Dev and Ops
Netflix on Cloud - combined slides for Dev and OpsNetflix on Cloud - combined slides for Dev and Ops
Netflix on Cloud - combined slides for Dev and Ops
 
(CMP303) ResearchCloud: CfnCluster and Internet2 for Enterprise HPC
(CMP303) ResearchCloud: CfnCluster and Internet2 for Enterprise HPC(CMP303) ResearchCloud: CfnCluster and Internet2 for Enterprise HPC
(CMP303) ResearchCloud: CfnCluster and Internet2 for Enterprise HPC
 
20160503 Amazed by AWS | Tips about Performance on AWS
20160503 Amazed by AWS | Tips about Performance on AWS20160503 Amazed by AWS | Tips about Performance on AWS
20160503 Amazed by AWS | Tips about Performance on AWS
 
AWS Summit London 2014 | Amazon WorkSpaces (100)
AWS Summit London 2014 | Amazon WorkSpaces (100)AWS Summit London 2014 | Amazon WorkSpaces (100)
AWS Summit London 2014 | Amazon WorkSpaces (100)
 
AWS Cloud for HPC and Big Data
AWS Cloud for HPC and Big DataAWS Cloud for HPC and Big Data
AWS Cloud for HPC and Big Data
 
Cmg06 utilization is useless
Cmg06 utilization is uselessCmg06 utilization is useless
Cmg06 utilization is useless
 
Nuts and bolts of running a popular site in the aws cloud
Nuts and bolts of running a popular site in the aws cloudNuts and bolts of running a popular site in the aws cloud
Nuts and bolts of running a popular site in the aws cloud
 
Deep Dive on Amazon EC2 Instances - AWS Summit Cape Town 2017
Deep Dive on Amazon EC2 Instances - AWS Summit Cape Town 2017Deep Dive on Amazon EC2 Instances - AWS Summit Cape Town 2017
Deep Dive on Amazon EC2 Instances - AWS Summit Cape Town 2017
 
Deep Dive: Amazon EC2 Elastic GPUs - May 2017 AWS Online Tech Talks
Deep Dive: Amazon EC2 Elastic GPUs - May 2017 AWS Online Tech TalksDeep Dive: Amazon EC2 Elastic GPUs - May 2017 AWS Online Tech Talks
Deep Dive: Amazon EC2 Elastic GPUs - May 2017 AWS Online Tech Talks
 
Cloud Economics: Optimising for Cost
Cloud Economics: Optimising for CostCloud Economics: Optimising for Cost
Cloud Economics: Optimising for Cost
 
A Step By Step Guide To Put DB2 On Amazon Cloud
A Step By Step Guide To Put DB2 On Amazon CloudA Step By Step Guide To Put DB2 On Amazon Cloud
A Step By Step Guide To Put DB2 On Amazon Cloud
 
Cloud Computing with .Net
Cloud Computing with .NetCloud Computing with .Net
Cloud Computing with .Net
 
Hadoop and HBase on Amazon Web Services
Hadoop and HBase on Amazon Web Services Hadoop and HBase on Amazon Web Services
Hadoop and HBase on Amazon Web Services
 
Deep Dive on Delivering Amazon EC2 Instance Performance
Deep Dive on Delivering Amazon EC2 Instance PerformanceDeep Dive on Delivering Amazon EC2 Instance Performance
Deep Dive on Delivering Amazon EC2 Instance Performance
 
Azure Serverless Toolbox
Azure Serverless ToolboxAzure Serverless Toolbox
Azure Serverless Toolbox
 
How to scale up, out or down in Windows Azure - Webinar
How to scale up, out or down in Windows Azure - WebinarHow to scale up, out or down in Windows Azure - Webinar
How to scale up, out or down in Windows Azure - Webinar
 
Deep Learning with AWS (November 2016)
Deep Learning with AWS (November 2016)Deep Learning with AWS (November 2016)
Deep Learning with AWS (November 2016)
 
Deep Dive on Delivering Amazon EC2 Instance Performance
Deep Dive on Delivering Amazon EC2 Instance PerformanceDeep Dive on Delivering Amazon EC2 Instance Performance
Deep Dive on Delivering Amazon EC2 Instance Performance
 
Netflix Cloud Platform Building Blocks
Netflix Cloud Platform Building BlocksNetflix Cloud Platform Building Blocks
Netflix Cloud Platform Building Blocks
 
How to scale up, out or down in Windows Azure
How to scale up, out or down in Windows AzureHow to scale up, out or down in Windows Azure
How to scale up, out or down in Windows Azure
 

Similar a Tips & Tricks On Architecting Windows Azure For Costs

Cost architecting for Windows Azure - NDC2011
Cost architecting for Windows Azure - NDC2011Cost architecting for Windows Azure - NDC2011
Cost architecting for Windows Azure - NDC2011Maarten Balliauw
 
Architecting for a cost effective Windows Azure solution
Architecting for a cost effective Windows Azure solutionArchitecting for a cost effective Windows Azure solution
Architecting for a cost effective Windows Azure solutionMaarten Balliauw
 
Acsug scalable windows azure patterns
Acsug scalable windows azure patternsAcsug scalable windows azure patterns
Acsug scalable windows azure patternsNikolai Blackie
 
Building an Amazon Datawarehouse and Using Business Intelligence Analytics Tools
Building an Amazon Datawarehouse and Using Business Intelligence Analytics ToolsBuilding an Amazon Datawarehouse and Using Business Intelligence Analytics Tools
Building an Amazon Datawarehouse and Using Business Intelligence Analytics ToolsAmazon Web Services
 
[DBA]_HiramFleitas_SQL_PASS_Summit_2017_Summary
[DBA]_HiramFleitas_SQL_PASS_Summit_2017_Summary[DBA]_HiramFleitas_SQL_PASS_Summit_2017_Summary
[DBA]_HiramFleitas_SQL_PASS_Summit_2017_SummaryHiram Fleitas León
 
Aws meetup (sep 2015) exprimir cada centavo
Aws meetup (sep 2015)   exprimir cada centavoAws meetup (sep 2015)   exprimir cada centavo
Aws meetup (sep 2015) exprimir cada centavoSebastian Montini
 
Software Engineering Advice from Google's Jeff Dean for Big, Distributed Systems
Software Engineering Advice from Google's Jeff Dean for Big, Distributed SystemsSoftware Engineering Advice from Google's Jeff Dean for Big, Distributed Systems
Software Engineering Advice from Google's Jeff Dean for Big, Distributed Systemsadrianionel
 
Reducing latency on the web with the Azure CDN- TechDays NL 2014
Reducing latency on the web with the Azure CDN- TechDays NL 2014Reducing latency on the web with the Azure CDN- TechDays NL 2014
Reducing latency on the web with the Azure CDN- TechDays NL 2014Maarten Balliauw
 
Optimizing Total Cost of Ownership for the AWS Cloud
Optimizing Total Cost of Ownership for the AWS CloudOptimizing Total Cost of Ownership for the AWS Cloud
Optimizing Total Cost of Ownership for the AWS CloudAmazon Web Services
 
Designs, Lessons and Advice from Building Large Distributed Systems
Designs, Lessons and Advice from Building Large Distributed SystemsDesigns, Lessons and Advice from Building Large Distributed Systems
Designs, Lessons and Advice from Building Large Distributed SystemsDaehyeok Kim
 
Deploy Microsoft Azure Data Solutions
Deploy Microsoft Azure Data SolutionsDeploy Microsoft Azure Data Solutions
Deploy Microsoft Azure Data SolutionsMarco Parenzan
 
Future of computing is boring (and that is exciting!)
Future of computing is boring (and that is exciting!) Future of computing is boring (and that is exciting!)
Future of computing is boring (and that is exciting!) alekn
 
Migration to ClickHouse. Practical guide, by Alexander Zaitsev
Migration to ClickHouse. Practical guide, by Alexander ZaitsevMigration to ClickHouse. Practical guide, by Alexander Zaitsev
Migration to ClickHouse. Practical guide, by Alexander ZaitsevAltinity Ltd
 
Benchmarking your cloud performance with top 4 global public clouds
Benchmarking your cloud performance with top 4 global public cloudsBenchmarking your cloud performance with top 4 global public clouds
Benchmarking your cloud performance with top 4 global public cloudsdata://disrupted®
 
Architecture, Products, and Total Cost of Ownership of the Leading Machine Le...
Architecture, Products, and Total Cost of Ownership of the Leading Machine Le...Architecture, Products, and Total Cost of Ownership of the Leading Machine Le...
Architecture, Products, and Total Cost of Ownership of the Leading Machine Le...DATAVERSITY
 
AWS Summit Sydney | 50GB Mailboxes for 50,000 Users on AWS? Easy - Session Sp...
AWS Summit Sydney | 50GB Mailboxes for 50,000 Users on AWS? Easy - Session Sp...AWS Summit Sydney | 50GB Mailboxes for 50,000 Users on AWS? Easy - Session Sp...
AWS Summit Sydney | 50GB Mailboxes for 50,000 Users on AWS? Easy - Session Sp...Amazon Web Services
 

Similar a Tips & Tricks On Architecting Windows Azure For Costs (20)

Cost architecting for Windows Azure - NDC2011
Cost architecting for Windows Azure - NDC2011Cost architecting for Windows Azure - NDC2011
Cost architecting for Windows Azure - NDC2011
 
Architecting for a cost effective Windows Azure solution
Architecting for a cost effective Windows Azure solutionArchitecting for a cost effective Windows Azure solution
Architecting for a cost effective Windows Azure solution
 
Acsug scalable windows azure patterns
Acsug scalable windows azure patternsAcsug scalable windows azure patterns
Acsug scalable windows azure patterns
 
Architecture et coût
Architecture et coûtArchitecture et coût
Architecture et coût
 
Building an Amazon Datawarehouse and Using Business Intelligence Analytics Tools
Building an Amazon Datawarehouse and Using Business Intelligence Analytics ToolsBuilding an Amazon Datawarehouse and Using Business Intelligence Analytics Tools
Building an Amazon Datawarehouse and Using Business Intelligence Analytics Tools
 
Evolving to serverless
Evolving to serverlessEvolving to serverless
Evolving to serverless
 
[DBA]_HiramFleitas_SQL_PASS_Summit_2017_Summary
[DBA]_HiramFleitas_SQL_PASS_Summit_2017_Summary[DBA]_HiramFleitas_SQL_PASS_Summit_2017_Summary
[DBA]_HiramFleitas_SQL_PASS_Summit_2017_Summary
 
Aws meetup (sep 2015) exprimir cada centavo
Aws meetup (sep 2015)   exprimir cada centavoAws meetup (sep 2015)   exprimir cada centavo
Aws meetup (sep 2015) exprimir cada centavo
 
Software Engineering Advice from Google's Jeff Dean for Big, Distributed Systems
Software Engineering Advice from Google's Jeff Dean for Big, Distributed SystemsSoftware Engineering Advice from Google's Jeff Dean for Big, Distributed Systems
Software Engineering Advice from Google's Jeff Dean for Big, Distributed Systems
 
Reducing latency on the web with the Azure CDN- TechDays NL 2014
Reducing latency on the web with the Azure CDN- TechDays NL 2014Reducing latency on the web with the Azure CDN- TechDays NL 2014
Reducing latency on the web with the Azure CDN- TechDays NL 2014
 
Optimizing Total Cost of Ownership for the AWS Cloud
Optimizing Total Cost of Ownership for the AWS CloudOptimizing Total Cost of Ownership for the AWS Cloud
Optimizing Total Cost of Ownership for the AWS Cloud
 
Designs, Lessons and Advice from Building Large Distributed Systems
Designs, Lessons and Advice from Building Large Distributed SystemsDesigns, Lessons and Advice from Building Large Distributed Systems
Designs, Lessons and Advice from Building Large Distributed Systems
 
Deploy Microsoft Azure Data Solutions
Deploy Microsoft Azure Data SolutionsDeploy Microsoft Azure Data Solutions
Deploy Microsoft Azure Data Solutions
 
Future of computing is boring (and that is exciting!)
Future of computing is boring (and that is exciting!) Future of computing is boring (and that is exciting!)
Future of computing is boring (and that is exciting!)
 
Migration to ClickHouse. Practical guide, by Alexander Zaitsev
Migration to ClickHouse. Practical guide, by Alexander ZaitsevMigration to ClickHouse. Practical guide, by Alexander Zaitsev
Migration to ClickHouse. Practical guide, by Alexander Zaitsev
 
02 performance
02 performance02 performance
02 performance
 
Benchmarking your cloud performance with top 4 global public clouds
Benchmarking your cloud performance with top 4 global public cloudsBenchmarking your cloud performance with top 4 global public clouds
Benchmarking your cloud performance with top 4 global public clouds
 
04 performance
04 performance04 performance
04 performance
 
Architecture, Products, and Total Cost of Ownership of the Leading Machine Le...
Architecture, Products, and Total Cost of Ownership of the Leading Machine Le...Architecture, Products, and Total Cost of Ownership of the Leading Machine Le...
Architecture, Products, and Total Cost of Ownership of the Leading Machine Le...
 
AWS Summit Sydney | 50GB Mailboxes for 50,000 Users on AWS? Easy - Session Sp...
AWS Summit Sydney | 50GB Mailboxes for 50,000 Users on AWS? Easy - Session Sp...AWS Summit Sydney | 50GB Mailboxes for 50,000 Users on AWS? Easy - Session Sp...
AWS Summit Sydney | 50GB Mailboxes for 50,000 Users on AWS? Easy - Session Sp...
 

Más de Nuno Godinho

Windows Azure Security & Compliance
Windows Azure Security & ComplianceWindows Azure Security & Compliance
Windows Azure Security & ComplianceNuno Godinho
 
Architecture Best Practices on Windows Azure
Architecture Best Practices on Windows AzureArchitecture Best Practices on Windows Azure
Architecture Best Practices on Windows AzureNuno Godinho
 
Extensibility with sl4 and mef (pt)
Extensibility with sl4 and mef (pt)Extensibility with sl4 and mef (pt)
Extensibility with sl4 and mef (pt)Nuno Godinho
 
Extensibility with sl4 and mef (en)
Extensibility with sl4 and mef (en)Extensibility with sl4 and mef (en)
Extensibility with sl4 and mef (en)Nuno Godinho
 
TechDays 2010 Portugal - WCF RIA Services 16x9
TechDays 2010 Portugal - WCF RIA Services 16x9TechDays 2010 Portugal - WCF RIA Services 16x9
TechDays 2010 Portugal - WCF RIA Services 16x9Nuno Godinho
 
TechDays 2010 Portugal - The Microsoft Silverlight Analytics Framework 16x9
TechDays 2010 Portugal - The Microsoft Silverlight Analytics Framework 16x9TechDays 2010 Portugal - The Microsoft Silverlight Analytics Framework 16x9
TechDays 2010 Portugal - The Microsoft Silverlight Analytics Framework 16x9Nuno Godinho
 
TechDays 2010 Portugal - Scaling your data tier with app fabric 16x9
TechDays 2010 Portugal - Scaling your data tier with app fabric 16x9TechDays 2010 Portugal - Scaling your data tier with app fabric 16x9
TechDays 2010 Portugal - Scaling your data tier with app fabric 16x9Nuno Godinho
 
TechDays 2010 Portugal - Introduction to Silverlight 4.0 16x9
TechDays 2010 Portugal - Introduction to Silverlight 4.0 16x9TechDays 2010 Portugal - Introduction to Silverlight 4.0 16x9
TechDays 2010 Portugal - Introduction to Silverlight 4.0 16x9Nuno Godinho
 
TechDays 2010 Portugal - Entity Framework 4.0 and Beyond
TechDays 2010 Portugal - Entity Framework 4.0 and BeyondTechDays 2010 Portugal - Entity Framework 4.0 and Beyond
TechDays 2010 Portugal - Entity Framework 4.0 and BeyondNuno Godinho
 
TechDays 2010 Portugal - Event Driven Architectures - 16x9
TechDays 2010 Portugal - Event Driven Architectures - 16x9TechDays 2010 Portugal - Event Driven Architectures - 16x9
TechDays 2010 Portugal - Event Driven Architectures - 16x9Nuno Godinho
 

Más de Nuno Godinho (12)

Windows Azure Security & Compliance
Windows Azure Security & ComplianceWindows Azure Security & Compliance
Windows Azure Security & Compliance
 
Architecture Best Practices on Windows Azure
Architecture Best Practices on Windows AzureArchitecture Best Practices on Windows Azure
Architecture Best Practices on Windows Azure
 
Wif and sl4 (pt)
Wif and sl4 (pt)Wif and sl4 (pt)
Wif and sl4 (pt)
 
Wif and sl4 (en)
Wif and sl4 (en)Wif and sl4 (en)
Wif and sl4 (en)
 
Extensibility with sl4 and mef (pt)
Extensibility with sl4 and mef (pt)Extensibility with sl4 and mef (pt)
Extensibility with sl4 and mef (pt)
 
Extensibility with sl4 and mef (en)
Extensibility with sl4 and mef (en)Extensibility with sl4 and mef (en)
Extensibility with sl4 and mef (en)
 
TechDays 2010 Portugal - WCF RIA Services 16x9
TechDays 2010 Portugal - WCF RIA Services 16x9TechDays 2010 Portugal - WCF RIA Services 16x9
TechDays 2010 Portugal - WCF RIA Services 16x9
 
TechDays 2010 Portugal - The Microsoft Silverlight Analytics Framework 16x9
TechDays 2010 Portugal - The Microsoft Silverlight Analytics Framework 16x9TechDays 2010 Portugal - The Microsoft Silverlight Analytics Framework 16x9
TechDays 2010 Portugal - The Microsoft Silverlight Analytics Framework 16x9
 
TechDays 2010 Portugal - Scaling your data tier with app fabric 16x9
TechDays 2010 Portugal - Scaling your data tier with app fabric 16x9TechDays 2010 Portugal - Scaling your data tier with app fabric 16x9
TechDays 2010 Portugal - Scaling your data tier with app fabric 16x9
 
TechDays 2010 Portugal - Introduction to Silverlight 4.0 16x9
TechDays 2010 Portugal - Introduction to Silverlight 4.0 16x9TechDays 2010 Portugal - Introduction to Silverlight 4.0 16x9
TechDays 2010 Portugal - Introduction to Silverlight 4.0 16x9
 
TechDays 2010 Portugal - Entity Framework 4.0 and Beyond
TechDays 2010 Portugal - Entity Framework 4.0 and BeyondTechDays 2010 Portugal - Entity Framework 4.0 and Beyond
TechDays 2010 Portugal - Entity Framework 4.0 and Beyond
 
TechDays 2010 Portugal - Event Driven Architectures - 16x9
TechDays 2010 Portugal - Event Driven Architectures - 16x9TechDays 2010 Portugal - Event Driven Architectures - 16x9
TechDays 2010 Portugal - Event Driven Architectures - 16x9
 

Último

From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????blackmambaettijean
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 

Último (20)

From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 

Tips & Tricks On Architecting Windows Azure For Costs

  • 1. TH03 - Tips & Tricks on Architecting W indows Azure for Costs Nuno Godinho Cloud Solution Architect Level: Introdutory
  • 2. About Me Nuno Filipe Godinho Cloud Solution Architect @ Aditi Windows Azure MVP nunog@aditi.com http://msmvps.com/blogs/nunogodinho Twitter: @NunoGodinho
  • 3. Agenda • Compute • Bandwidth, Storage & Transactions • SQL Azure • Customer Awareness • Developer Awareness • Scenarios • Key Takeaways
  • 5. Limiting virtual machine count • Do you need full capacity 24/7? – Probably not, reduce # cpu’s when not used • Use Windows Azure Diagnostics API & Windows Azure Management API to scale (semi) automatically – 24 hours x 10 small instances = $28.80/day vs. – 16 hours x 10 small instances + 8 hours x 4 extra-small instances = $20.48/day
  • 6. Limiting virtual machine count Don’t Forget • Staging environment costs • When not in use, undeploy the staging environment – 24 hours x 5 small instances = $14.4/day
  • 7. Workers need work! • Out of the box, 1 worker role = 1 task • Why not spin up processes or threads? • Example: You want 20 tasks running – Option1: 1 task per worker = 20 workers = ~ 42 EUR/day – Option2: 2 tasks per worker = 10 workers = ~ 21 EUR/day – Option3: 10 tasks per worker = 2 workers = ~ 4,2 EUR/day – Which means ~ 42 EUR / day vs. ~ 4,2 EUR / day = 90% savings • “Generic workers”: http://research.microsoft.com/en- us/downloads/76537edf-9b77-4664-b76b-cf51be506a0d/ • DON’T FORGET: 2 instances minimum for the SLA
  • 8. Do you need all of that? • 1 XL = 2 L = 4 M = 8 S (regarding costs) • No need for this memory / disk space? – Start small – Scale up/down more granularly
  • 9. IMPORTANT • Billing per reserved VM – Reserved = deployed / running • Billing in staging and production – 2 instances staging + 2 instances production = 4 instances billed • Undeploy your VM if not needed – Undeploy staging every evening – Automate this
  • 10. Work per hour • Billed per clock hour / CPU • Keep instances running at least until x:55 • Don’t deploy at x:50, instead deploy at x:55 – Deploy at x:50 and undeploy at x+1:10 – 2 hours billed! • Don’t deploy every minute – = 60 instance hours per hour! – Don’t do continuous deployment for every build, but accumulate
  • 11. BAND WIDTH, STORAGE & TRANSACTIONS
  • 12. Bandwidth? • Simple metric – Use more = pay more – Use less = pay less
  • 13. When am I using bandwidth? • Data transfers in/out Windows Azure – Compute – Blobs – AppFabric – SQL Azure • Data transfers between Windows Azure regions – E.g. North America – Europe – IMPORTANT: Keep compute & storage in the same region!
  • 14. Content Delivery Network • Content distributed across 24 Node servers across the world • Storage costs = Storage costs for public containers x 2 • Bandwidth costs = # data in public containers x # servers – Can be limited by setting cache headers
  • 15. Data Storage • Data you store (non SQL) – Tables – Blobs – Queues • Per GB / month • Average over full month – 10 GB stored for 15 days, 0 GB stored for 15 days = 5 GB stored for 1 month
  • 16. Transactions • 1 transaction = 1 storage operation • Billed per 10.000 • Example: Checking a queue every second from 2 workers – 172.800 transactions / day • Use a back-off mechanism – No data? Wait a second – Again no data? Wait two seconds – Etc.
  • 17. Transactions • Use Service Bus Queues and Notifications • Serving 100 images from blob storage – High traffic app  high # transactions – Choose wisely between blob storage and compute
  • 18. Diagnostics monitor • Writes data to storage account • Does not clean up • Write often = # transactions • Write less = lag in diagnostic data
  • 20. Database editions Database Size Price Per Database Per Month 0 to 100 MB Flat $4.995 Greater than 100 MB to 1 GB Flat $9.99 $9.99 for first GB, $3.996 for Greater than 1 GB to 10 GB each additional GB $45.954 for first 10 GB, $1.998 Greater than 10 GB to 50 GB for each additional GB $125.874 for first 50 GB, $0.999 Great than 50 GB to 150 GB for each additional GB
  • 21. Billing nuances • Based on peak DB size / day • Averaged over 1 month • Actual database edition size used is billed • Examples – 0.9 GB in a 5 GB web edition costs 1 GB (= $9.99) – 1.1 GB in a 5 GB web edition costs 5 GB (= $49.95)
  • 22. Tables & indexes cost money • Be careful with them • Only define indexes needed • Indexing every column & not using it may be a waste of money • Example – If an index does not add speed, lose it – If the data relational, go NoSQL – Table with 1 GB of “static data” on SQL Azure = $ 9.99, on table/blob storage it costs $ 0.12...
  • 24. Customer awareness • Yes, you can have all you want • Yes, you can have it your way BUT...
  • 25. Discuss OpEx! • Cost-analyze the requirements • Discuss implications & alternatives with stakeholders – Pay more for user experience? – Cheaper alternative experience? – Clever solutions? • Review the options you considered • Write them down & sign off – Or you will return to these discussions again and again
  • 27. A code snippet... if (Session["culture"].ToString() == "en-US") { // .. set to English ... } rs s! if (Session["culture"].ToString() == "nl-BE") { pe st lo // .. set to Dutch ... } De ve ct co im pa string culture = Session["culture"].ToString(); ct ly if (culture == "en-US") { // .. set to English ... ir } e d if (culture == "nl-BE") { // .. set to Dutch ... }
  • 28. Analysing Real World Scenarios SCENARIOS
  • 30. Scenario 1 – Static WebSite What to use? Options? Blob Storage Compute Option 1: Blob Storage We pay for? Storage Space Transactions Bandwidth In/Out Option 2: Compute We pay for? Compute Hours Bandwidth In/Out
  • 31. Scenario 1 – Static WebSite – v1 Number of Concurrent Users: 10 / second WebSite Storage Space: 0,5 GB Average Number of files served per User: 5 Average file size: 200 KB Option 1: Blob Storage We pay for? Storage Space = 0,5 GB * 0,15 = 0,075 USD Transactions = (10 * 5 * 60 * 24 * 30 ) / 10k * 0,01 = 2,16 USD Bandwidth In/Out = (10 * 5* 60 * 30 * 0,0002) * 0,15 = 2,7 USD Total Costs ~ $ 5 Option 2: Compute We pay for? Compute Hours = (2 * 24 * 30) * 0,12 = 172,8 USD Transactions = (1 * 5 * 60 * 24 * 30 ) / 10k * 0,01 = 0,216 USD Bandwidth In/Out = (10 * 5* 60 * 30 * 0,0002) * 0,15 = 2,7 USD Total Costs ~ $ 176
  • 32. Scenario 1 – Static WebSite – v2 Number of Concurrent Users: 1000 / second WebSite Storage Space: 0,5 GB Average Number of files served per User: 5 Average file size: 200 KB Option 1: Blob Storage We pay for? Storage Space = 0,5 GB * 0,15 = 0,075 USD Transactions = (1000 * 5 * 60 * 24 * 30 ) / 10k * 0,01 = 216 USD Bandwidth In/Out = (1000 * 5* 60 * 30 * 0,0002) * 0,15 = 270 USD Total Costs ~ $ 487 Option 2: Compute We pay for? Compute Hours = (2 * 24 * 30) * 0,12 = 172,8 USD Transactions = (1 * 5 * 60 * 24 * 30 ) / 10k * 0,01 = 0,216 USD Bandwidth In/Out = (1000 * 5* 60 * 30 * 0,0002) * 0,15 = 270 USD Total Costs ~ $ 444
  • 33. Scenario 3 – Static WebSite – v3 Number of Concurrent Users: 2000 / second WebSite Storage Space: 0,5 GB Average Number of files served per User: 5 Average file size: 200 KB Option 1: Blob Storage We pay for? Storage Space = 0,5 GB * 0,15 = 0,075 USD Transactions = (2000 * 5 * 60 * 24 * 30 ) / 10k * 0,01 = 432 USD Bandwidth In/Out = (2000 * 5* 60 * 30 * 0,0002) * 0,15 = 540 USD Total Costs ~ $ 973 Option 2: Compute We pay for? Compute Hours = (2 * 24 * 30) * 0,12 = 172,8 USD Transactions = (1 * 5 * 60 * 24 * 30 ) / 10k * 0,01 = 0,216 USD Bandwidth In/Out = (2000 * 5* 60 * 30 * 0,0002) * 0,15 = 540 USD Total Costs ~ $ 714
  • 35. Scenario 2 – Application Data Storage • What to use? Options? – SQL Azure – Table Storage – SQL Azure + Table Storage • Assumptions – Number of Concurrent Users: 100 / second – Database Size: 10 GB – Average response size: 200 KB – Reference Data Percentage: 20 % – History Data Percentage: 30 % – Simple Indexed Data Percentage: 40% – Highly searched Data Percentage: 10%
  • 36. Scenario 2 – Application Data Storage – v1 • Option 1: SQL Azure – We pay for? Database Storage = $ 45.954 Bandwidth Out = (100 * 60 * 30 * 0.0002) * 0,15 = $ 5.4 Total Cost: $ 51.354
  • 37. Scenario 2 – Application Data Storage – v2 • Option 2: Table Storage – We pay for? Storage Space = 10 GB * 0,15 = $ 1.5 Transactions = (100 * 60 * 24 * 30 ) / 10k * 0.01 = $ 4,32 Bandwidth Out = (100 * 60 * 30 * 0.0002) * 0.15 = $ 5.4 Total Costs = $ 11.22
  • 38. Scenario 2 – Application Data Storage – v3 • Option 3: SQL Azure + Table Storage – We pay for? SQL Azure Database Storage =1 GB = $ 9.99 Bandwidth Out = (100 * 60 * 30 * 0.0002) * 0.15 = $ 5.4 Table Storage Storage Space = 9 GB * 0.15 = $ 1.35 Transactions = (100 * 60 * 24 * 30 ) / 10k * 0.01 = $ 4.32 Bandwidth Out = (100 * 60 * 30 * 0.0002) * 0,15 = $ 5.4 Total Costs = $ 26.46
  • 40. Key Takeaways • Cloud pricing isn’t more complex – Just “different” • Every component has own characteristics • Requirements impact costs • Developers impact costs • Windows Azure pricing model can improve code quality • But don’t over-analyze!
  • 41. Resources • Starting point: – http://www.windowsazure.com • Steve Marx: – http://blog.smarx.com • Cloud Cover Show – http://channel9.msdn.com/Shows/Cloud+Cover • Special Thanks to Maarten Balliauw – http://blog.maartenballiauw.be
  • 42. THANK YOU Nuno Godinho Cloud Solution Architect @ Aditi nunog@aditi.com Twitter: @NunoGodinho http://msmvps.com/blogs/nunogodinho

Notas del editor

  1. Visual Studio Live! Las Vegas 2011 © 2012 Visual Studio Live! All rights reserved.
  2. 1 Task per Worker = (720 * 0,12 * 20) / 30 = 57,6 USD / day = 42 Eur/day 2 tasks per Worker = (720 * 0,12 * 10) / 30 = 28,8 USD / day = 21 Eur/day 10 tasks per Worker = (720 * 0,12 * 2) / 30 = 5,76 USD / day = 4,2 Eur/day
  3. The Real Cost of Indexes” ( blogs.msdn.com/b/sqlazure/archive/2010/08/19/10051969.aspx )
  4. Visual Studio Live! Las Vegas 2011 © 2012 Visual Studio Live! All rights reserved.