= Blazor server vs WASM hosting costs =

![ ](httpswww.redditstatic.com/desktop2x/img/renderTimingPixel.png)

Hello again blazor reddit! as always thanks for your opinions, i would like to know if someone has some real world usage or calculations of the two hosting settings in terms of costs ( without needing to scale horizontally )

A normal 2000-3000 connected users i would say, if my logic is correct, blazor server should be more expensive to host, and in my experience way faster to develop than wasm,

How big is the gap in costs between the 2 versions? any ideas? calculations? real world prices?

Thx for the infos

![ ](httpswww.redditstatic.com/desktop2x/img/renderTimingPixel.png)

Cost of scaling is much lower than people claim.

 For example, Microsoft has stated that a 1 core, 3.5 GB memory machine can scale to 5000 concurrent users. Upgrade your Azure machine to the P2V3, 4 Core, 16 GB memory, and you can support up to 20,000 concurrent users

httpsdocs.microsoft.com/en-us/answers/questions/806871/regarding-concurrent-connection-on-a-blazor-server.html

A quick look at current azure cost estimates a 1 core, 3.5 gb webapp to be $110 a month for basic and $146 for a standard tier.

Even with server side pre-rending setup I can host my production site for about $13/month with excellent response times on Blazor WASM. I would stay away from Blazor Server for any moderately serious site personally.

If the client for Blazor WASM to the WebAPI is setup to be generated with nswag this makes life easy.

What is your experience in terms of development cost between Blazor Server and WASM? I feel we can get away without creating web APIs in Server mode as we can directly access caches, databases and other enterprise wide infrastructure which don’t necessarily provide a web API. But in WASM mode you’d be forced to build a web API layer to service the front end. E.g. In Server mode, I could directly access redis cache via C# API, but in WASM I’d have to use webdis in between, which is an extra hop and additional drain on resources. Would appreciate yours and other members thoughts. Thank you!

I'm using an Azure storage account with static website hosted in blob storage:

httpsdocs.microsoft.com/en-us/azure/storage/blobs/storage-blob-static-website-host

To allow use of a custom domain name I then added Azure CDN.


For the data I either have it supplied with the web app as static json files for data that only changes when I update it rather when a user does, so is updated whenever I publish a new release, or use Azure functions on the consumption plan for the web app to call that then use Azure table storage for persisisting the data.

This achieves a 'serverless' solution where I only pay for the resources as used rather than having to pay for a server to always be available even when no users are accessing it.

The Azure consumption based plans allow a certain level of activity or usage for free before charges are incurred, and even though one of my web apps now has some test data of a few hundred MB it's only costing me pennies a month in total for everything to do with Azure.

Absolute no brainer for hobby or low user demand web apps where not sure how popular they may become so not paying higher monthly outgoings until it's a deserved cost.

All done using C# through all the layers from Azure data access to browser UI with Blazor.

== About Community ==

== Powerups ==

httpswww.redditstatic.com/desktop2x/img/powerups/powerups-rangers.png)