Home icon

Build a digital assets exchange on AWS: A reference architecture

Blog



This article presents a reference architecture for building a centralized digital assets exchange (CEX) on AWS, aggregating architectural decisions from multiple production deployments.

  • Multi-account AWS organization structure with separate OUs for control, production, staging, and CI/CD using AWS Control Tower and SCPs
  • Matching engine hot path runs single-AZ in cluster placement group with replicated Raft cluster for high availability within zone
  • Multi-AZ recovery layer with durable state replication for zone failure recovery with explicit RTO and RPO targets
  • Core trading on Amazon EKS microservices; dedicated EC2 instances for matching engine to eliminate orchestration overhead
  • Client gateway and matching engine connected via brokerless messaging (ZeroMQ, Aeron) achieving 32–84 microseconds p99 latency
  • Purpose-built data stores: Aurora PostgreSQL for transactions, DynamoDB for key-value, ElastiCache for order books, MSK for event backbone, kdb Insights for analytics
  • AWS Nitro Enclaves for cryptographic operations with KMS attestation; Fireblocks MPC wallets for multi-party key management
  • Market maker connectivity options: shared placement groups, PrivateLink, VPC peering, Transit Gateway, or Direct Connect based on latency and deployment needs
  • Security via GuardDuty, Security Hub CSPM, CloudTrail audit logging; observability through CloudWatch dashboards and custom trading metrics

The architecture prioritizes matching-engine latency through deliberate single-AZ design with explicit recovery targets, treating latency-availability trade-offs as core design decisions rather than defaults.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Jan 2
2025
Build a digital asset tokenization framework for financial services use cases using Amazon Managed Blockchain – Part 1
Oct 25
2026
Practical digital sovereignty: Building a sovereign landing zone on AWS
Oct 2
2025
Processing digital asset payments on AWS
Sep 14
2026
AWS Security Reference Architecture: A deep dive into PCI DSS compliance

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.