Blazor Server vs Blazor WebAssembly: Which is Right for You?

Поделиться
HTML-код
  • Опубликовано: 28 авг 2024
  • #dotnet #csharp #.NET #softwaredevelopment
    In this highly informative video, I'm thrilled to present a comprehensive comparison between Blazor Server and Blazor WebAssembly, two cutting-edge technologies in web development. Join me as I dissect the differences, benefits, and use cases of these frameworks, helping you make an informed decision for your projects.
    Blazor, powered by C# and .NET, has revolutionized web development by enabling developers to build rich and interactive web applications. In this tutorial, I'll guide you through the intricacies of Blazor Server and Blazor WebAssembly, shedding light on their distinctive features.
    Blazor Server leverages the power of ASP.NET Core, allowing developers to build web applications that execute on the server. This approach provides real-time communication, smooth user experiences, and effortless updates without requiring the client's full processing power. Discover how Blazor Server simplifies development, enhances performance, and optimizes the user interface.
    On the other hand, Blazor WebAssembly empowers developers to run applications directly in the browser. By compiling the C# code into WebAssembly, Blazor WebAssembly eliminates the need for server-side execution, providing offline support and the ability to execute complex logic on the client-side. Unveil the exciting possibilities and unparalleled flexibility offered by Blazor WebAssembly.
    Throughout the video, I'll showcase practical examples, compare performance benchmarks, and delve into the intricacies of both frameworks. We'll explore topics such as [ASP.NET](asp.net/) Core, C# programming, Visual Studio, and .NET Core, all crucial components in mastering Blazor Server and Blazor WebAssembly.
    By the end of this tutorial, you'll have a deep understanding of Blazor Server and Blazor WebAssembly, enabling you to determine which approach best suits your development needs. Stay ahead of the curve and harness the power of Blazor as you elevate your web development skills.
    Don't miss out on this eye-opening exploration of Blazor Server vs Blazor WebAssembly. Subscribe to my channel, hit the notification bell, and join my thriving community of passionate programmers. Together, let's unlock the true potential of Blazor and revolutionize web development!

Комментарии • 18

  • @EricKing
    @EricKing Год назад +12

    I don't like the characterization of "if performance is important, Blazor server is the best bet" because "performance" here can have many meanings. Depending on your meaning, Blazor WebAssembly may actually be the better choice. I think what you meant by "performance" here is initial page load time, in which case, yeah, Blazor Server will load up faster, initially. But that's only a (small) part of the overall experience. For most other application functionality, Blazor WebAssembly will have much better performance, since most of the processing is happening directly on the browser itself, without the latency of sending an operation to the server and waiting for the server's response to return over the internet for *every single operation* in the UI. The typical Blazor Server experience on the UI only approaches that of Blazor WebAssembly when you have near perfect network conditions. Under any other conditions, WebAssembly performance is noticeably snappier.

    • @nickproudprogrammer
      @nickproudprogrammer  Год назад +2

      Nice! Yeah you nailed it. I was referring more to load times. So I could probably have framed that better. When you're staying within that self-contained context of a WASM app, performance will be much better. Thanks for picking that up 👍

    • @robadobdob
      @robadobdob Год назад +1

      I would also argue that the perceived “performance” downside of WASM app is exaggerated . People will happily download apps in the hundreds of MB from app stores without batting eyelid. A Blazor WASM app will seem snappy by comparison.

    • @joshbruton
      @joshbruton 6 месяцев назад +1

      We are using Blazor server in production, and found that actually using it with a "distant server" or a choppy internet connection is not good at all; like almost unusable. Blazor Server does not manage simultaneous SignalR connections very well (it will just randomly boot people off, giving them that disconnected screen showed in this video) and the difference between in-development performance and in-production performance is very noticeable.
      Edit: the resolution to the blazor server trouble is mostly just larger server resources and multi-region hosting, but I definitely think WASM is more performant and much lower cost

  • @nomanshaikhali3355
    @nomanshaikhali3355 3 месяца назад

    Kindly guide me to select the better tool for server-side rendering blazor or react?

  • @jamesigoe
    @jamesigoe 10 месяцев назад

    Great video, helped me decide for a new implementation

  • @ishrarg
    @ishrarg 8 месяцев назад

    Helpful, Thanks @Nick

  • @2005Azm
    @2005Azm Год назад +1

    how do you deploy a Blazor Server App?

    • @nickproudprogrammer
      @nickproudprogrammer  Год назад

      You can do it via visual studio. If you have an app service in Azure, you can create a publish profile in VS and do it from there. www.syncfusion.com/blogs/post/deploy-blazor-application-in-azure-app-service.aspx

  • @vimalvaira
    @vimalvaira 7 месяцев назад

    I did not understand how can you compare hosting blazor server on your local machine and call it quick.
    In real life most pages would be loaded and connecting to a machine hosted in another continent or country, the latency will catch on.
    You also made it seem like WASM is not meant to make complex API calls, you should be more specific with such things.

  • @rimezero
    @rimezero 11 месяцев назад +1

    What i heard was basically a biased uninformed comparison towards blazor server.

    • @nickproudprogrammer
      @nickproudprogrammer  11 месяцев назад +1

      Sorry you feel that way. Thanks for watching nonetheless :)

  • @obinnaokafor6252
    @obinnaokafor6252 Год назад

    Blazor United in .NET 8