当前位置:网站首页>Is blazor ready to serve the enterprise?

Is blazor ready to serve the enterprise?

2020-11-07 16:46:00 itread01

If you are writing .NET Web Applications , You may have realized that in the last year .NET Web The hot spots in the field of development are Blazor Of . If you don't understand Blazor, It allows you to use C# To write Web UIs, Traditionally you have to use JavaScript. The last two years , I've seen it evolve from a lovely Microsoft lab project to what they think is a production ready project .

With the official release next week .NET 5 ! We see Blazor A lot of improvements to :CSS Isolation 、JavaScript Isolation 、 Component virtualization 、 Switch event support 、 Delay loading 、 Server side pre rendering and so on . These improvements can help Blazor Catch up with the leader SPA The basic functions of the framework , Such as Vue、React and Angular.

If you're writing code for a company of the right size , You may think Blazor Are you ready for enterprise application development . You can convince your bosses to use it for new application development , Is it possible to refactor an existing application ? I think it's ready . However , It's not an easy answer " yes "-- It involves a subtle answer , It's not just about new technology . Here I would like to share a related English article :

  • Is Blazor Safe for Your Enterprise to Bet On?

We will answer some common questions to answer this question :

Blazor It's another one Silverlight Do you ?

If you use Blazor Developed for a while , I must feel that this is an unreasonable argument , It's usually the right question to ask Blazor Questions raised by feeling without understanding , But this is one of you in .NET Questions that must be answered in Ecology . Blazor Based on WebAssembly Standard built ( Use C# instead of JavaScript To build Web Applications ), Instead of using Microsoft's exclusive technology that can be suddenly abandoned . It doesn't need to be like Silverlight That kind of browser plug-in .

Blazor How to help teams deliver faster ?

Blazor It's lower than usual with JavaScript Associated front end learning curve , And allow developers to use their languages and tools to get things done .Blazor It won't replace JavaScript . however , If you are a service with a majority of C# The developer's company , The work efficiency will be significantly improved . The team just needs to be familiar with the core SPA Concept , but .NET Domain knowledge is reusable , A very typical situation is to engage in a lot of Winform Development of students , Switch to Blazor Develop Web The speed will be enjoyable .

Whether to support a good ecosystem ?

Because of Blazor Is in .NET In the ecosystem , So it also has official support from Microsoft , Like any other product . Besides ,Microsoft Continue to invest a lot of energy , And it has a long history of backward compatibility . Ecosystems are not like Angular and React That evolution , They have made great progress , But it's growing dramatically . Just like Peter · What Vogel said ,Blazor Already and Vue comparison , have 25% Revenue ( From Google Trends ).

Does it work well ?

And others SPA Compared to the framework ,Blazor Is it good enough ? In most cases , There will be some waiting - Blazor Web Assembly Has a large download size ( As it loads in the browser .NET), And Blazor Server There are network hops for each user interaction ..NET The team has made great progress in solving effectiveness ,AOT The compiler is .NET 6 in ASP.NET The biggest feature request for ( And it also affects ASP.NET Middle Africa Blazor Applications ). If you're dealing with massive data , You may need to wait for these improvements , But in most business situations, these improvements should be appropriate .

版权声明
本文为[itread01]所创,转载请带上原文链接,感谢