Coder Social home page Coder Social logo

haskob / cleanarchitect Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 954 KB

A .NET 6 project implementing the CQRS pattern would typically involve a separation of concerns by separating write and read operations, allowing for better scalability and performance. It would also use asynchronous programming and adhere to SOLID principles.

C# 96.36% HTML 3.18% CSS 0.38% JavaScript 0.08%
exception fluentvalidation identity jwt mediatr razor exception-handling nswag unit-testing csharp

cleanarchitect's Introduction

CleanArchitect

A .NET 6 project implementing the CQRS pattern would typically involve a separation of concerns by separating write and read operations, allowing for better scalability and performance. It would also use asynchronous programming and adhere to SOLID principles.

In terms of design patterns, the repository uses the following:

  • Clean Architecture: This pattern separates the code into distinct layers and enforces a clear separation of concerns. The repository follows the typical Clean Architecture pattern with Domain, Application, and Infrastructure layers. The Domain layer contains the core business logic, the Application layer contains the use cases, and the Infrastructure layer contains the implementation details such as data access and external dependencies.

  • Repository Pattern: The repository pattern is used in the Infrastructure layer to provide a layer of abstraction over the data access implementation. This allows for the implementation details to be swapped out without affecting the rest of the application.

  • Mediator Pattern: The mediator pattern is used in the Application layer to decouple the use case implementation from the controllers. This allows for a more flexible and maintainable architecture.

  • Factory Pattern: The factory pattern is used in the Infrastructure layer. This allows for more flexibility and testability in the implementation of the data access layer.

  • CQRS Pattern: The Command Query Responsibility Segregation (CQRS) pattern is used in the Application layer to separate the commands and queries that the system can handle. This allows for more separation of concerns and scalability.

  • Dependency Injection: The repository uses the built-in .NET dependency injection framework to manage the dependencies between the layers of the application. This allows for more maintainable and testable code.

cleanarchitect's People

Contributors

haskob avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.