To fit various application needs and deployment situations, Blazor provides two hosting types. : Blazor WebAssembly and Blazor Server.

 

A client-side approach called Blazor WebAssembly runs the Blazor program, its dependencies, and the .NET runtime straight in the user's browser. 

As the application runs completely on the client-side, this architecture provides lower server load and better performance. Exposure of .NET code in the browser could, however, lead to bigger first download sizes and possible security issues. 

 

On the other hand, the Blazor Server model  follows a more conventional server-side rendering technique. The Blazor program runs on the server under this model 

UI interactions are managed by a real-time SignalR connection. Though it could increase server load and possibly latency problems for more interactive apps.

This model  guarantees that sensitive code stays on the server and lowers the first download size.


Related Question