核心概念
系統架構
SatoriEx 架構的高階全覽圖。我們分享系統的整體架構,讓您了解所獲得的保障;特定廠商和產品選擇有意省略。
如何閱讀本頁
Swipe left or right to see the full diagram.
三層架構
每層只負責單一職責。層間邊界明確,因此任何單一元件均可在不影響其他元件的情況下替換。
邊緣層
防禦周邊
終止 TLS、套用流量限制與地理規則,並將正常請求轉發至閘道。邊緣層是唯一的公開介面;其後的一切均為私有。
核心層
執行應用程式
Web 應用程式提供 UI,API 驗證請求並協調業務邏輯,撮合引擎按價格時間優先為買賣雙方配對,工作程序處理清算、通知和定時任務。每個均為獨立程序,因此故障不會擴散。
資料與鏈層
儲存狀態並橋接至區塊鏈
餘額和歷史記錄以複式記帳帳本形式存放在資料庫中——每次變更都有借方和貸方,從不單方向寫入。快取和佇列位於前端,服務熱資料讀取和委託管線。區塊鏈僅在資金進出系統或使用者需要自託管時才被使用。
API 內部的分層方式
在 API 伺服器內部,我們遵循整潔架構。領域實體對外部任何內容零依賴。業務邏輯僅依賴領域層。傳輸層(HTTP、事件)和基礎設施層(資料儲存、鏈客戶端)依賴業務邏輯,反向則不成立。
Domain ──▶ App ──▶ Adapter ──▶ Infra entities business logic transport boundary data stores no imports orchestration request / response DB · Cache · Queue · Chain
依賴關係指向內部。領域層不知道 HTTP 伺服器或資料庫的存在。
託管交易 vs 自託管
Custodial trading is fast and free of per-trade gas: matching and the ledger live inside the Core. Linking an external wallet today gives you an on-chain deposit/withdrawal path — your USDC moves between the wallet and the SatoriEx ledger across the chain, and a gas fee applies on each move. Trading itself still runs inside the Core in either case. A full self-custody trading mode — where outcome shares are represented on-chain as ERC-1155 CTF tokens during the position — is on the roadmap (see Contracts and Changelog); it is not active today.