Tuesday, January 21, 2025

Choosing the right ASP.NET Core approach

Blazor would be great if:

  • You want real-time updates as users input their cards
  • You need rich client-side interactivity without writing JavaScript
  • You want to share code between client and server
  • You're planning to make it a Progressive Web App (PWA)

Razor Pages would be suitable if:

  • You want a simpler, more straightforward approach
  • The calculations are primarily server-side
  • You don't need complex client-side interactions
  • You want faster initial page loads

MVC would be better if:

  • You need a more structured separation of concerns
  • You're building a larger application 
  • You want to follow REST principles
  • You need to support multiple views of the same data

 

No comments:

Post a Comment

Choosing the right ASP.NET Core approach

Blazor would be great if: You want real-time updates as users input their cards You need rich client-side interactivity without writing J...