ardalis / ardalis/CleanArchitecture

dependencies and transaction management

Open
#993 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
18.5k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

NestJS , C# ... Clean Architecture in deep

Clean Architecture has a single rule: dependencies must always point toward the domain.

Many NestJS projects violate this rule, even those that claim to use Clean Architecture.

NestJS has a key feature that is often misused and ends up breaking the dependency rule.

That same feature, when used correctly (as shown in the documentation), allows the rule to be respected without hacks.

The key is to properly understand the rule and know what to do and what not to do. The documentation explains how to apply the correct option.

---

There are four strategies to implement transaction management in a NestJS project that uses Clean Architecture.

One of these strategies relies on a feature that has existed since Node.js 12.

Each strategy can be analyzed in terms of:

* Whether it violates Clean Architecture
* Whether it is coupled to the framework or a specific library
* The complexity of the required changes
* Whether it facilitates testing or not
* Whether it is thread-safe

Contributor guide

Open the contributing guide

Research direction

The issue names no repository files, tests, or entry points; begin by identifying where the C# template documents or implements dependency direction and transaction management. Done would require a clearly defined scope and acceptance criteria for the requested Clean Architecture analysis, including the NestJS and Node.js 12 references.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, node.js
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.