About Blazor
Microsoft’s Blazor is one of the recently Introduced and a wonderful Web UI framework to develop single page applications. Blazor is a component-based architecture where each page is a component, and each part of page can be a component. With Blazor the use of JavaScript for building a web application will be very minimal or nil. Blazor fully supports invoking JavaScript methods from C# and vies versa.
Blazor project will have Razor components and Blazor comes in two flavors.
- Blazor Web assembly
- Blazor Server
Blazor Web Assembly
Shortly this is called as Blazor WASM. This flavor of Blazor approach can be used when we are creating a rich client-side application which interacts with the rest services and offline capabilities with WASM. In this approach the application will get downloaded into the client system for the first time and the same will be served based on the client's request. Blazor WASM can be hosted as a standalone client application or the same can be hosted with the asp.net core backed hosted service. Here Web assembly is an optional thing where user can opt –in or opt-out.
Blazor Server
Blazor server is typically a asp.net core application with Blazor features. Blazor events or user actions are handled with the built-in SignalR connection. With this approach the initial load of the application in the client browser will be minimum. Once the application is loaded, then all the requests and responses will be handled with the build-in SignalR connection.
Comments
Post a Comment