แนวคิดหลัก
สถาปัตยกรรม
แผนที่ระดับสูงของวิธีที่ SatoriEx ถูกสร้างขึ้น เราแบ่งปันรูปแบบของระบบเพื่อให้คุณเข้าใจการรับประกันที่ได้รับ การเลือก vendor และผลิตภัณฑ์เฉพาะถูกละเว้นโดยเจตนา
วิธีอ่านหน้านี้
Swipe left or right to see the full diagram.
สามชั้น
แต่ละชั้นมีงานเดียว ขอบเขตชัดเจนเพื่อให้เปลี่ยนชิ้นส่วนใดก็ได้โดยไม่กระทบอื่น
Edge
ป้องกันขอบเขต
ยุติ TLS ใช้ขีดจำกัดอัตราและกฎ geo และส่ง request ที่ดีต่อสุขภาพไปยัง Gateway Edge เป็น surface สาธารณะเดียว ทุกอย่างหลังนั้นเป็นส่วนตัว
Core
รันแอปพลิเคชัน
Web app ให้บริการ UI API ยืนยันตัวตน request และประสาน business logic Matcher จับคู่ผู้ซื้อและผู้ขายตามลำดับความสำคัญราคา-เวลา และ Workers จัดการการชำระบัญชี การแจ้งเตือน และงานตามกำหนด แต่ละอันเป็น process แยกต่างหากเพื่อให้ความล้มเหลวอยู่ในวง
Data & Chain
เก็บสถานะและ bridge ไปยัง chain
ยอดเงินและประวัติอยู่ในฐานข้อมูลเป็น double-entry ledger — ทุกการเปลี่ยนแปลงเป็น debit และ credit ไม่ใช่การเขียนด้านเดียว cache และ queue อยู่ข้างหน้าสำหรับการอ่าน hot และ order pipeline blockchain ถูกใช้งานเฉพาะเมื่อเงินเข้าหรือออกจากระบบ หรือเมื่อผู้ใช้ต้องการ self-custody
วิธีที่ API ถูก layer ภายใน
ภายใน API server เราใช้ layout clean architecture entities ของ domain ไม่มี dependency ภายนอก business logic ขึ้นอยู่กับ domain เท่านั้น Transport (HTTP, events) และ infrastructure (data store, chain client) ขึ้นอยู่กับ business logic ไม่ใช่ทางกลับกัน
Domain ──▶ App ──▶ Adapter ──▶ Infra entities business logic transport boundary data stores no imports orchestration request / response DB · Cache · Queue · Chain
Dependency ชี้เข้าข้างใน domain ไม่รู้ว่า HTTP server หรือฐานข้อมูลมีอยู่
Custodial กับ self-custody
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.