What is Blazor? And is it right for your new website?

What is Blazor? And is it right for your new website?

2 min read - 01 Aug, 2023blazor programming software
This site was written in blazor, from the hello world template in visual studio. It's a SPA which means single page application, and is an alternative to the many JavaScript frameworks like React, and angular. Blazor is for developers comfortable with Microsoft technologies, and more specifically, c#. It allows for developers to produce server side code, and this is rendered into html mark up using Signal R. I won't go to much into Signal R but it basically uses websockets to render the page partially, rather than using roundtrip to the server. It creates a seamless refresh which prevents the flicker you get when reloading webpages. Its a more modern approach to MVC partials and jQuery get. Blazor is for software developers comfortable with c# to develop their web applications in a language they are familiar with, the front and back end is in one language. What are the advantages: 1. Consistent programming language 2. Single page application renders partial content by default. 3. Comes with bootstrap out the box 4. Will run on the client or a server 5. Error pages aren't seo friendly, they are soft errors that need overriding. Disadvantages: 1. Signal R loses connection to site when you goto a new tab, or there is a problem with internet. 2. Learning curve getting to grips with the partial render methodology. 3. Rendering can take a while with large datasets
A blog about blazor, it's uses, advantages and downfalls
Published Tuesday, 1 August 2023


Related Articles