Skip to content

Blazor design patterns #10742

Closed
Closed
@guardrex

Description

@guardrex

From @vertonghenb at Introducing Design Patterns

Requests for new topic

Since Server-side Blazor (a.k.a Razor Components) shifts the entire idea of a client and back-end, it would be nice to see some advised Design Patterns. For example: https://docs.microsoft.com/en-us/dotnet/standard/microservices-architecture/microservice-ddd-cqrs-patterns/net-core-microservice-domain-model

  • Is it still feasable to use a DDD pattern when we're sharing the domain between the App and Server?
  • Should the Service Layer be isolated from the domain so we can use a Proxy Design Pattern when switching from Server Side to Client Side?
  • Rich domain model versus anemic domain model (https://martinfowler.com/bliki/AnemicDomainModel.html)
  • Form Validation based on Data Annotations and taking a dependency on MVC or using a library such as FluentValidation?
  • ...

For newcomers it can be pretty confusing.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions