When would you choose Interactive Auto over just Interactive WebAssembly?
Last updated
Choose
InteractiveAutowhen first-load latency matters: it starts interactive on the server over SignalR, while pure WebAssembly blocks until the .NET runtime downloads.Auto downloads the WASM runtime in the background and runs on the client on later visits, freeing server resources. Stick with pure WebAssembly for static hosting or offline PWAs with no server.
Trade-off: components must work in both execution modes (no server-only APIs), and you pay for Server hosting plus the WASM payload.
- https://learn.microsoft.com/en-us/aspnet/core/blazor/components/render-modes?view=aspnetcore-10.0
- https://medium.com/informatics/blazor-server-vs-wasm-vs-hybrid-which-rendering-model-is-the-most-efficient-178235ef86a8
- https://www.ssw.com.au/rules/blazor-render-mode
- https://jonhilton.net/client-or-server-project-for-components/
- https://dotnetwebacademy.substack.com/p/the-blazor-auto-render-mode-explained