简体   繁体   English

Azure 托管 Blazor WebAssembly 的替代方案

[英]Azure alternatives for hosting Blazor WebAssembly

Hosting Blazor WebAssembly on Azure seems to be expensive, particularly with a SQL Server database.Azure上托管Blazor WebAssembly似乎很昂贵,尤其是使用 SQL 服务器数据库。 Can a Blazor WebAssembly website be hosted outside the big names in Cloud? Blazor WebAssembly 网站可以在云中的大牌之外托管吗? (Azure, AWS and the others) Any suggestions? (Azure、AWS 和其他)有什么建议吗? I do not need a high traffic performance solution, a host with an "average" capabilities (say a couple hundred users per day, some 20 pages website or so, connected to a backend relational database say with some 20 tables of few 100K rows at max) and a low budget would do.我不需要一个高流量性能的解决方案,一个具有“平均”能力的主机(比如每天几百个用户,大约 20 个页面的网站,连接到后端关系数据库,比如大约 20 个 100K 行的表最大)和低预算就可以了。

I have Googled that some suggest to use a static hosting for hosting a Blazor WebAssembly website, and on Azure that should be free?我用谷歌搜索了一些建议使用 static 托管来托管 Blazor WebAssembly 网站,以及 Azure 应该是免费的吗? (as much as I gathered), but does not include a SQL Server database. (据我所知),但不包括 SQL 服务器数据库。 If the database is the problem, any suggestions for an alternative data storage tech/approach (even a no-sql database) which can lead for the website (including its data storage part) to be hosted for free or a low budget?如果数据库是问题所在,对替代数据存储技术/方法(甚至是无 sql 数据库)的任何建议可以导致网站(包括其数据存储部分)免费或低预算托管? No matter what configurations I tried in Azure price calculator, I ended up with 100s$ per month - at least.无论我在 Azure 价格计算器中尝试了哪些配置,我最终都得到了每月 100 美元 - 至少。

I'm aware of the first year trial/free Azure services for learning/development etc. but looking to know can I provide a working/business website with Blazor including the database and hosting, on a low budget.我知道用于学习/开发等的第一年试用/免费 Azure 服务,但想知道我能否以低预算提供包含数据库和托管的 Blazor 的工作/商业网站。

Help much appreciated.非常感谢帮助。 Thank you.谢谢你。

Ok from I can see there are two different questions.好的,我可以看到有两个不同的问题。

  • Approaches to host a Blazor WASM App托管 Blazor WASM 应用程序的方法
  • Options for SQL Database SQL 数据库的选项

Approaches to host Blazor WASM托管 Blazor WASM 的方法
There are quite a few options to host cheaply.有很多选择可以便宜地托管。

  • Azure Container Apps : For 10 million requests per month with 100 concurrent requests will cost between $3 and $6 . Azure 容器应用程序:每月 1000 万个请求和 100 个并发请求将花费3 到 6 美元 The costs essentially depends on the usage (CPU and Memory usage).成本基本上取决于使用情况(CPU 和 Memory 使用情况)。
  • Static hosting on Azure Storage : All you pay for is the storage and the transactions. Static 托管在 Azure 存储上:您只需支付存储和交易费用。 A similar spec as above will cost between $4 and $6与上述类似的规格将花费4 到 6 美元
  • App Service : A shared linux App Service will cost $14应用服务:共享的 linux 应用服务将花费14 美元

Options for SQL Db SQL Db 的选项
This depends on what you need, the data storage and how often you are going to hit the db in the first place这取决于您需要什么、数据存储以及首先访问数据库的频率

  • Azure SQL : A basic Service Tier, 5 DTU, 2 GB database will cost $5 - $6 based on backups Azure SQL :基本服务层、5 DTU、2 GB 数据库将花费5 - 6 美元(基于备份)
  • Cosmos DB : Serverless 1 million RU with 2 GB storage will be $1 . Cosmos DB :具有 2 GB 存储的无服务器 100 万 RU 将是1 美元 And Cosmos DB supports SQL APIs as well. Cosmos DB 也支持 SQL API。

PS 1 : All the costs are in USD. PS 1 :所有费用均以美元计。
PS 2 : The specs mentioned in here are listed in the following url. PS 2 :此处提到的规格在以下 url 中列出。 https://azure.com/e/8a014ac17828453f901a14ab91754f47 https://azure.com/e/8a014ac17828453f901a14ab91754f47

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM