Create a new comprehensive guide learn/guides/fundamentals/WorkerArchitecture.md that explains the multi-threaded architecture of Neo.mjs.
Scope:
- Worker Model: Explain the distinct roles of App, VDom, Data, and Main threads.
- Message Routing: Detail how
Neo.worker.Manager and Neo.worker.Base orchestrate communication.
- Communication Patterns:
- Standard (RPC): App -> Main -> App (e.g., Addons).
- Triangular (VDOM): App -> VDom -> Main -> App (Optimization for DOM updates).
- Direct (MessageChannel): App <-> Canvas (Peer-to-peer optimization).
- Remote Method Access (RMA): Explain the "magic" behind the proxy methods, promises, and error handling across threads.
- Use Cases: Provide examples of when each pattern is used and why.
Update learn/tree.json:
Add the new guide entry to the guides/fundamentals section.
Create a new comprehensive guide
learn/guides/fundamentals/WorkerArchitecture.mdthat explains the multi-threaded architecture of Neo.mjs.Scope:
Neo.worker.ManagerandNeo.worker.Baseorchestrate communication.Update
learn/tree.json: Add the new guide entry to theguides/fundamentalssection.