The exchange landscape in crypto is split between centralised exchanges (CEXs) and decentralised exchanges (DEXs). Each model has distinct technical architectures, custody models, regulatory requirements, and user experiences. If you are building a trading platform, the choice between these models — or a hybrid approach — is the most consequential architectural decision you will make.
Centralised Exchange Architecture
CEXs operate like traditional financial exchanges. They custody user funds, run off-chain order books and matching engines, and settle trades on internal ledgers. The user deposits assets to exchange-controlled wallets and trades against the exchange's order book. This architecture provides high performance — sub-millisecond matching, deep order books, and advanced order types. However, the exchange holds user funds, creating custodial risk. CEXs require significant regulatory compliance including KYC/AML, licensing (VFA licence in Malta, MiCA in the EU), reserve attestations, and cybersecurity standards. The infrastructure is complex: matching engines, wallet systems, risk engines, compliance tools, and user-facing applications all need to work together reliably.
Decentralised Exchange Architecture
DEXs execute trades on-chain through smart contracts. The two primary models are:
- Automated Market Makers (AMMs): Pools of paired tokens with prices determined by a mathematical formula (constant product, concentrated liquidity, or curve-optimised). Uniswap, Curve, and Balancer use this model. No order book is needed — liquidity providers deposit tokens and traders swap against the pool.
- On-chain order books: Platforms like dYdX (on StarkEx) and Serum (on Solana) replicate the order book model on-chain or in a hybrid off-chain/on-chain setup. This provides CEX-like trading experience with self-custody, but requires high-throughput chains to be viable.
Key Trade-offs
Performance favours CEXs — off-chain matching is orders of magnitude faster than on-chain execution. Custody favours DEXs — users retain control of their assets and trade directly from their wallets. Liquidity is deeper on major CEXs but DEX liquidity has grown significantly, especially for long-tail tokens. Regulatory clarity is stronger for CEXs, which fit neatly into existing financial licensing frameworks. DEXs face an evolving regulatory landscape, with some jurisdictions considering front-end regulation and others focusing on the protocol level. Gas costs are a factor for on-chain DEXs — every trade is a blockchain transaction — though Layer 2 deployments have reduced this significantly.
Hybrid Approaches
Increasingly, projects combine elements of both models. Off-chain order matching with on-chain settlement provides CEX performance with DEX custody. Intent-based trading, where users sign intents that solvers execute optimally, is a growing paradigm. Aggregators like 1inch route trades across multiple DEXs and CEXs to find optimal execution. At Born Digital, we help founders evaluate which exchange model best fits their target market, regulatory jurisdiction, and technical capabilities. Whether building a licensed CEX in Malta or deploying a DEX protocol, the architecture must align with the business model and compliance requirements.