Ad

clean-architecture-dotnet: Minimal Clean Architecture Microservices

Build microservices with .NET using Minimal Clean Architecture, DDD-lite, and CQRS-lite. Provides basic building blocks & project structure for effortless microservice development.
Screenshot of thangchung/clean-architecture-dotnet homepage

clean-architecture-dotnet provides a collection of foundational components and project structure to streamline .NET microservice development. It leverages Minimal Clean Architecture, Domain-Driven Design Lite, and CQRS Lite principles to simplify common microservices patterns. This project offers a starting point with reduced boilerplate code, allowing developers to focus on business requirements and iteratively add complexity as needed. The goal is to provide a lightweight and adaptable framework for building robust, scalable, and maintainable microservices.

This project prioritizes simplicity and ease of use, offering a minimal implementation of core architectural patterns. It is designed to integrate well with Tye and Dapr for cloud-native deployments. The structure is modular and extensible, accommodating both monolithic and microservice architectures. It provides a practical approach for learning and implementing Clean Architecture principles in .NET projects. Focusing on developer experience and reducing initial complexity.

  • Core Functionality: Provides basic building blocks for entities, repositories, domain logic, and authentication.
  • Supported Platforms/Integrations: Integrates with .NET 6, Dapr, MediatR, FluentValidation, and Swashbuckle.AspNetCore.
  • Configuration/Extensibility: Designed with extensibility in mind, allowing for easy addition of custom logic and integration with various services.
  • Performance/Scalability: Leverages .NET Core's performance characteristics and supports Dapr for distributed and scalable deployments.
  • Developer Experience: Offers a clear and concise structure, reducing boilerplate code and simplifying common tasks.
  • Authentication: Includes a lightweight authentication system with a simple security context and behavior.
  • Event Handling: Facilitates event-driven communication using a simple events framework.

The project is under active development and aims to provide a practical starting point for .NET microservice projects. While documentation is still evolving, the core components are functional and well-tested. Community contributions are welcome and actively encouraged. Continuous integration builds with Tye are maintained to ensure the project remains up-to-date with the latest .NET releases.

clean-architecture-dotnet benefits developers building .NET microservices by offering a streamlined approach to Clean Architecture. It simplifies complex patterns like DDD and CQRS, offering a solid foundation for creating scalable and maintainable applications. This project is ideal for developers seeking a practical and efficient way to apply Clean Architecture principles in their .NET projects, especially in microservice environments.

Languages:
Summarize:
Share:
Stars
1,351
Forks
291
Issues
12
Created
5 years ago
Commit
3 years ago
License
MIT
Archived
No
Updated 1 month ago

Similar Repositories