126GreatThings-9757 avatar image
0 Votes"
126GreatThings-9757 asked ·

Cost of hosting ASP.NET Core Blazor Server App Vs MVC

To host a Blazor Server App, an Azure Service that can handle SignalR is needed. To host a MVC App, serverless or app service is only needed. Out of these two, which is more cheaper to host for an application that has 10,000 users and 500 users active all the time?

10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

miwan2-msft avatar image
0 Votes"
miwan2-msft answered ·

Hi, @126GreatThings-9757,

The count of users and active users are not enough for you to choose architecture.

Shortly, you need to learn Blazor, Single Page Application (SPA), SignalR and MVC before answering your question.

When to build a traditional web app
- The app needs to support browsers without scripting, or the target browsers are out of date
- The app needs to support older phones where scripting may run slowly
- The app mostly serves static content or simple forms
- The development team does not have experience with the relevant languages and tech. Note that Blazor brings C# to the web and somewhat alleviates this problem for developers who already use C#
- Web APIs external apps do not need to reuse Web APIs built as part of the back-end.

When to choose Blazor
- Your application must expose a rich user interface
- Your team is more comfortable with .NET development than JavaScript or TypeScript development

When to build a SPA
- Users expect a modern, rich user experience with a focus on interactivity
- The target audience is up to date with modern browsers, and those browsers support scripting
- The application is likely to be a data transfer heavy
- The development team is familiar with the relevant languages and tech (TypeScript/JavaScript or C# for Blazor)
- Web APIs need to be first-class citizens

When to choose SignalR
- Apps that require high frequency updates from the server. Examples are gaming, social networks, voting, auction, maps, and GPS apps.
- Dashboards and monitoring apps. Examples include company dashboards, instant sales updates, or travel alerts.
- Collaborative apps. Whiteboard apps and team meeting software are examples of collaborative apps.
- Apps that require notifications. Social networks, email, chat, games, travel alerts, and many other apps use notifications.
- SignalR provides an API for creating server-to-client remote procedure calls (RPC). The RPCs call JavaScript functions on clients from server-side .NET Core code.

Below are some useful articles

If the answer doesn’t solve your issue, please provide more details of error that will help us track down what’s happening.
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Best Regards,
Michael Wang

10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.