Bỏ qua, đến nội dung

Kiến trúc

Phần này mô tả Digiforce ở mức hệ thống - từ tổng quan tới chi tiết server, client, data model, plugin, bảo mật, và luồng request.

Thứ tự đọc đề xuất

  1. Tổng quan hệ thống - context kiến trúc, thành phần lớn, boundary, nguyên tắc thiết kế.
  2. Server architecture - Koa app, hai tầng middleware, ResourceManager, DataSourceManager.
  3. Client architecture - React SPA, managers, provider chain, rendering.
  4. Data model & metadata - Collection, Field, UI Schema, metadata-driven workflow.
  5. Plugin architecture - mô hình plugin, lifecycle server/client, extension points.
  6. Security model - AuthManager, ACL Engine, pipeline bảo mật.
  7. Request lifecycle - end-to-end flows (read/write/WS/install/upgrade), debug checklist.
  8. FAQ - câu hỏi thường gặp về kiến trúc.

Sơ đồ có trong phần này

  • Tổng quan: system context, container server/client, monorepo package map, deployment.
  • Server: Application init, hai tầng middleware (Koa + data source pipeline), ResourceManager, DataSourceManager.
  • Client: Application constructor, provider chain, RouterManager, PluginManager load sequence, WebSocket.
  • Data model: Collection → Model → Repository → Table, UI Schema rendering, metadata workflow.
  • Plugin: hai nhánh PluginManager, lifecycle server (load/install/enable), lifecycle client (init/load).
  • Security: Auth middleware flow, JWT lifecycle, ACL can() decision tree, ACL middleware sequence.
  • Request lifecycle: read/write sequence, WebSocket, install/upgrade flow, data/control plane.

Liên quan