Hey everyone! I'm new to the Azure ecosystem and looking for some advice. I have a Python script that sends HTTP requests to crawl data about 5 to 10 times a week and then saves that data to a database. I'm thinking about using Azure Functions to host my code, but I'm confused about the different plans available, especially when it comes to pricing and resource requirements. Could anyone help me figure out which plan would be the best fit for my needs? Thanks a lot!
4 Answers
I'd recommend going with the Consumption Plan. It usually ends up being the cheapest option for low-frequency tasks like yours, plus you only pay for the actual execution time. If you ever experience issues with cold starts, you can always switch to the Flex Consumption later on.
Everyone seems to agree the Consumption Plan is the way to go. You'll likely benefit from some free executions each month, and for a simpler scenario like yours, it makes sense to avoid the extra cost of Flex unless cold starts become a hassle.
Based on your situation, I'd stick with the Consumption Plan if your database's security allows connections from serverless setups. Otherwise, you're left with Flex Consumption as your main option. In most cases, Consumption should work perfectly for what you're aiming for!
Flex Consumption can be a bit pricier for what you get, but it does have its uses, especially if your functions need to communicate with other Azure resources over a private endpoint. If that's relevant to your use case, it might be worth considering.
Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically