Blazor Render Modes in .NET 8

Sep 25, 2023 /
# Blazor

Blazor will have 3 render modes in .NET 8:

But how do you know which one to use?

Each one has it’s Pros and Cons. Here is a breakdown to help you decide.

SSR

The new render mode for Blazor in .NET 8 is SSR (server side rendering).

SSR renders your Blazor pages and components on the server and sends them to the browser as HTML. The same way MVC and Razor pages works.

Upsides:

Downsides:

Server

Server render mode uses SignalR to establish a websocket connection and uses that to send events and data to the server and receive the response.

This allows devs to build dynamic user interfaces and updates without having to refresh the client.

Upsides:

Downsides:

WASM

WASM (Web Assembly) render mode ships the .NET runtime to the browser, allowing you to write c# code for your user interfaces that is executed on the client side.

The end result is similar to server render mode, allowing devs to build dynamic user interfaces and updates without having to refresh the client.

Upsides:

Downsides

Early Access

Dotnet Engine will be launching in early access soon. Signup with your email now to get notified when early access starts and a special launch price.