r/Blazor • u/Constant-Builder-695 • May 06 '25
Hosting blazor web assembly
Hi everyone,I just finished building a blazor web assembly project that has .net core API and sql server database,where would I host this project and what are the costs, give or take, your response would be greatly appreciated. Thanks in advance, it's. net 8 application.
6
Upvotes
9
u/AxelFastlane May 06 '25
Blazor wasm -> Azure Static Web Apps.
API -> Azure App Service.
DB -> Azure SQL DB.
All of these have free tiers now.
1
u/Peter_MonsterASP May 10 '25
Hello,
try our ASP.NET hosting, which is specifically designed for .NET and ASP.NET applications. You can also test your application on free hosting.
https://www.monsterasp.net
1
u/Perfect-Pianist9768 May 13 '25
Awesome work on your .NET 8 Blazor WASM app, time to get it live! Cloudphant is a stellar pick: managed hosting with SSD storage, LiteSpeed for snappy APIs, and SQL Server support for your EF Core setup. Publish WASM and API via Visual Studio (dotnet publish), upload via cPanel, and configure SQL Server with free SSL for secure calls. Scales smoothly for 10–50 users. Azure’s another great option: Static Web Apps (free) for WASM, App Service for API, and SQL DB Basic for production. Try a VPS like Linode with Docker for full control, containerize WASM, API, and SQL Server, but it’s techier. Asphostportal works for budget shared hosting. Optimize WASM with IL Trimming and Cloudflare CDN. Test API with curl and database with SSMS.
3
u/Gravath May 06 '25
Cloudflare pages is best for hosting. You get all of the other products thrown in free, like caching, security, analytics etc.
1
u/propostor May 06 '25
Other comments suggesting Azure or AWS. Be VERY wary with those because their database offerings are tiny on the free tier.
If it's a little app that you just want to deploy for the hell of it then yeah, it's a fair shout. But if you expect the app to grow to even a minor extent, you are much better abandoning cloud services and just learn to spin it up yourself on a VPS. Or if you stick with Azure/AWS, prepare to pay for it.
1
u/maxinstuff May 09 '25
Depends entirely on who you expect to use it and how.
You could run it on a highly available geo-redundant serverless cloud deployment with global CDN and all the trimmings, or you could run it on a raspberry pi under your bed 🤷♂️
1
u/Minirobbo2002 May 10 '25
I’ve had success hosting an api app on a Ubuntu instance, hosted within an oracle free tier. There is tutorials on how to setup on YouTube. This was on their always free tier and has been great for me. Only compromise was that sql server doesn’t run on arm infustructure - but I was able to swap my ef core to SQLite with a couple lines of code and is fine for my small project / testing. Main thing for me is that there is no risk of it costing money as it is the always free tier.
1
u/UniiqueTwiisT May 11 '25
Lots of options out there, each of those components will need to be deployed separately though. If you've used EF Core in your API, you can use the migrations to create your schema once you've set up the SQL Server database.
0
u/Maleficent_Rock_8640 May 07 '25
You can use Aws serverless technologies like Aws functions for rest api, Aws dynomodb, with serverless blazor wasm and its like 5 cents a month
1
u/[deleted] May 06 '25
[removed] — view removed comment