Posts

Showing posts with the label Server Side

Debunking Blazor Server Scaling Myths: How .NET 8 Enhances Performance with New Render Methods

Image
  Note: this is an update from Yes, Blazor Can Scale , 4/1/2021 From the very beginning of Blazor Server's release, skeptics have claimed that it cannot scale effectively, often citing a limit of 5,000 concurrent users. This misconception stems from misunderstandings about Blazor Server's architecture and capabilities. With the advent of .NET 8, Blazor Server has introduced new render methods that significantly enhance its scalability and performance. In this post, we'll break down these myths and explore how the latest advancements in Blazor Server make it a robust solution for modern web applications. Understanding the "Limit" for Users When Microsoft discusses the need to scale an application, they imply that if a normal response for any concurrent user takes longer than 200 milliseconds, the system isn't performant and requires scaling. We'll adopt this definition: If any normal user response exceeds 200 ms, the system needs to scale for concurrent use...

Yes, Blazor Server can scale!

Image
From the very beginning of the release of Blazor Server naysayers have incorrectly stated that Blazor Server can not scale.  They usually state that the limit is 5,000 concurrent users. There are several misconceptions and wrong assumptions about their statement.  Let's break it down and get a better understanding of Blazor server-side scaling. What is the "limit" for users When Microsoft talks about the need to scale an application, what they are saying is that when a normal response for any concurrent user is taking longer than 200 ms, the system is not performant and needs to scale. We will accept that definition: If any normal user response is taking longer than 200 ms, the system needs to scale for concurrent users. By a normal response, we are referring to a page get, a post, etc.  Large database access requests would not be included in this measurement. What is scaling There are 2 common ways to scale, scale, out horizontally, and scale-up, up vertically. In our di...

Blazor - Displaying an Image

I wanted to be able to display an image file within a Blazor page.  During my research I realized that there is very little difference between displaying an image in Blazor as compared to displaying it in a HTML page.  So, I decided to add a couple of other features to my application.   The features I have added are:   1. Get a list of files on the server   2. Display at list in a Blazor page   3. Provide a UI effect to zoom in on the image   I will be using the Blazor Server configuration for this application.  We can do this with the Client-side configuration, but you need an API to access the server files.  I have created a folder under WWWROOT called DsiplayImages where I have placed several images I will be working with.  I have created a service that will access the image files from the server.  In addition, I have created a model for the file properties I a need.   ...