Does the fear of increased costs keep you from moving your on-premise solution to the cloud? Or do you feel that you are paying too much for your current cloud solution? I am a cheapskate and I thoroughly enjoy paying as little as I can on my cloud services usage. Microsoft Azure is a great platform to use when creating your next cloud native solution. But maybe you have head or felt that it can be a tad expensive? Let us change this! There are a whole lot of services to choose from on Microsoft Azure. Some are very expensive, and some are cheap. The same services can be cheap for high usage, but expensive for low usage and vice-versa. So how do you know which services to use? And how do I set up my solution so that it as cheap as it can be for my usage? Is the service that advertises a large generous free tier, or the one that has just received a new consumption-based pricing model, the service cheapest for you in the long run? In this talk we will compare some of the more known services against each other using my "Stinginess-scale". I will show some simple changes that can be done to some of the more known reference architectures to make them cheaper. And share some of my best tips & tricks on how to architecture cheap solutions on Microsoft Azure. I hope that you will leave this talk inspired and with new knowledge on how to save money on your current or next cloud solution!
1. A cheapskate's guide to
Azure
Øredev 2022, Malmö
Karl Løland
Cloud Evangelist at Webstep
@etroll
2. Me
Karl Løland
Cloud Evangelist at Webstep
@etroll
Enjoys talking with techies at conferences
Used Microsoft Azure heavily since 2009
Huge baseball fan!
Bit of a nerd
Consultant
3. Agenda
Intro – Why?
Common cost saving tips & tricks
«Hidden» costs
Thoughprocess – Stingyness scale
Possible quick changes to arhitectures
22. Are you using the best pricing tier?
Photo by Jukan Tateisi
23. App
Service
Pricing
Tiers
100 ACU & 1,75GB for ~600 NOK/Month – 6 NOK/ACU
210 ACU & 3,5GB for ~700 NOK/Month – 3,4 NOK/ACU
>390 ACU & 8GB for ~800 NOK/Month – 2 NOK/ACU
45. Azure
Monitor
Median data ingestion is around 3GB
Alerts, notifications, and queries cost extra
Data sent to 3rd party has a cost per GB
Analytics Logs is 3.6x more expensive than basic logs
Do not send unnecessary logs or metrics
Application Insight logs is also 3.6x more expensive
47. My «stingyness scale»
Photo by Mick Haupt
Ease of cost
estimations
Production
usage price
Consumption
based pricing
Free tier Tiered pricing
model
Is it a good
product
50. Pricing
Model and
Tiers
Limited free tier
Standard provisioned throughput
Auto scaled provisioned throughput
Consumption based pricing tier
vCores (compute and memory)
56. Where do I
start?
Costant and known usage Variable or unknown usage
Cunsumption based
still cheaper than cheapest
fixed price alternative?
No
Yes
57. Where do I
start?
Costant and known usage Variable or unknown usage
Cunsumption based
still cheaper than cheapest
fixed price alternative?
No
Yes
58. Where do I
start?
Costant and known usage Variable or unknown usage
Cunsumption based
still cheaper than cheapest
fixed price alternative?
No
Consumption based
crosses fixed price alternative
Yes
59. Compute alternatives
Functions App Service
Plan
Container
Instances
Virtual
Machines
AKS
Prefferable – Often in combination Can I avoid?
63. Examples
Image classification on Azure
Web or mobile
front-end
API / event
processor
Data storage
Event trigger
Microsoft
Azure
Azure
Functions
Storage
account
Computer
Vision API
Azure
Event Grid
Azure Blob
Storage
Image uploads
Azure
Cosmos DB
64. Examples
Image classification on Azure
Web or mobile
front-end
API / event
processor
Data storage
Event trigger
Microsoft
Azure
Azure
Functions
Storage
account
Computer
Vision API
Azure
Event Grid
Azure Blob
Storage
Image uploads
Azure Table
Storage
Azure Blob
Storage
70. Summary
Common tips and tricks for reducing costs
«Hidden» storage and bandwidth costs
Mental tools to compare services for costs
Minor changes in architectures to reduce cost