Skip to content

Commit 6ac9949

Browse files
authored
Enhance documentation on plugin domains
Added sections on domain isolation and communication via hooks.
1 parent 69ce696 commit 6ac9949

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

docs/content/plugin-domains/index.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,38 @@ Instead:
9090

9191
<br>
9292

93+
## 🔌 Domain Isolation
94+
95+
Plugin domains are designed to be **fully isolated** from each other.
96+
97+
👉 A plugin domain does NOT reference another plugin domain
98+
👉 There are no direct dependencies between domains
99+
100+
### 🧠 Why?
101+
102+
This ensures:
103+
104+
- Loose coupling
105+
- Independent evolution
106+
- Replaceability
107+
- Clear boundaries
108+
109+
## 🔄 Communication via Hooks
110+
111+
Plugin domains communicate **only through integration hooks**.
112+
113+
For example:
114+
115+
- User domain triggers → `OnUserCreated`
116+
- Credential domain listens → creates password credential
117+
118+
👉 This is implemented via abstractions such as:
119+
120+
- `IUserLifecycleIntegration`
121+
- domain events / integration points
122+
123+
<br>
124+
93125
## 🧠 Mental Model
94126

95127
If you remember one thing:

0 commit comments

Comments
 (0)