Skip to content

What is the value of using RenderMode.InteractiveServer"? #53201

Answered by javiercn
DavidThielen asked this question in Q&A
Discussion options

You must be logged in to vote

The difference is that in one case you are prerendering and in the other you aren't. The benefit of prerendering is that the content is available to the user much faster.

  • In the prerendered case, the content arrives in the initial response.
  • In the non-prerendered case, you first need to send a request, get a response, then start a SignalR connection (a couple of requests), then trigger the render.
    • That's likely between 2 and 4 times slower depending on the bandwidth and can be significant depending on what drives the time to render the UI on the screen.

There are strategies you can follow to avoid hitting the database twice:

  • You can add a cache at the server level for the data you a…

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@DavidThielen
Comment options

@Tony20221
Comment options

@DavidThielen
Comment options

@Tony20221
Comment options

@DavidThielen
Comment options

Answer selected by javiercn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area-blazor Includes: Blazor, Razor Components
3 participants