Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the Difference Between Blazor.Server and Asp.Net Web API? [closed]

Blazor is one of those technologies that has me really excited to get started with. I am an experienced Asp.Net MVC and Web API (.Net Framework. not Core) developer. My first app that I am creating in Blazor is a PWA Web Assembly App with Individual User Accounts Hosted on Asp.Net Core using .Net 5.0. I've chosen to go the hosted route mainly because I want the Asp.Net Identity User Store functionality.

In my newly constructed Blazor Core Hosted Wasm PWA I have three projects.

  1. App.Client
  2. App.Server
  3. App.Library

App.Server in many ways functions like an Api but it is different. One of those differences as far as I can tell is how it authenticates with App.Client. My question is two-fold in the fact that I want to know if other technologies/ clients like Xamarin.Forms can integrate with Blazor's App.Server... or can only Blazor Clients?

Second Question is that App.Server "seems" like an Api... but it is not. What are the differences specifically?

like image 351
Anthony Griggs Avatar asked Oct 15 '25 04:10

Anthony Griggs


1 Answers

Blazor is designed to be used with html and create web content delivery applications. A Web API project has the similarities you've noted because they both exist as a content delivery service via web server. The difference is in the content you're delivering. Blazor is made for web pages, while an API project enables you to deliver data via REST endpoints.

like image 150
Carson Avatar answered Oct 16 '25 17:10

Carson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!