File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
docs/content/plugin-domains Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff 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
95127If you remember one thing:
You can’t perform that action at this time.
0 commit comments