the different between blazor server and webassembly?

mc 3,641 Reputation points
2021-04-03T09:33:44.897+00:00

I know there is a loading screen in the blazor

is it only in blazor webassembly? not in blazor server?

Is it ok to use blazor to develop a company main website?

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,385 questions
0 comments No comments
{count} votes

Accepted answer
  1. Michael Wang-MSFT 1,051 Reputation points
    2021-04-06T09:34:54.803+00:00

    Blazor WebAssembly

    The primary Blazor hosting model is running client-side in the browser on WebAssembly. The Blazor app, its dependencies, and the .NET runtime are downloaded to the browser. The app is executed directly on the browser UI thread. UI updates and event handling occur within the same process. The app's assets are deployed as static files to a web server or service capable of serving static content to clients.

    When the Blazor WebAssembly app is created for deployment without a backend ASP.NET Core app to serve its files, the app is called a standalone Blazor WebAssembly app. When the app is created for deployment with a backend app to serve its files, the app is called a hosted Blazor WebAssembly app. A hosted Blazor WebAssembly Client app typically interacts with the backend Server app over the network using web API calls or SignalR (Use ASP.NET Core SignalR with Blazor).

    Blazor Server

    With the Blazor Server hosting model, the app is executed on the server from within an ASP.NET Core app. UI updates, event handling, and JavaScript calls are handled over a SignalR connection.

    Blazor Server uses a standard ASP.NET Core application. Within that application, we can integrate server-side functionality, such as integrating a SQL Server database through Entity Framework.

    84798-image.png

    The hosting model you should use will depend on the objectives and the features you want to offer in your application.

    If you plan to use the application where Internet connectivity is weak, you might opt for Blazor WebAssembly as it functions well without a server connection. It’s also a better choice if you prefer to work offline.

    If you’re looking to build company website, Blazor Server is a better choice.

    ------
    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 vote it up.
    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


1 additional answer

Sort by: Most helpful
  1. AlexChow 11 Reputation points MVP
    2022-12-07T21:26:42.47+00:00

    SSR development site of company ok, but it is not friendly to mobile clients. Because the mobile browse app if switches to other app for a while , and then switches back, it will stop at the connection terminal interface, which seems unfriendly.

    For me, the best practice is as a background management program, such as store background, editing products, viewing reports, etc.

    0 comments No comments