Powering high-performance on-chain trading using AWS with RISE Labs
Learn how Singaporean blockchain company RISE Labs uses Graviton processors to power the backend of a decentralized exchange.
Benefits
- higher throughput
- 82%
- lower latency
- 43%
- faster blockchain state access
- 20x
- market capacity, up from fewer than 50
- 200
Overview
Decentralized exchanges need fast, consistent transaction processing to attract traders and market makers. RISE Labs (RISE) builds and supports the backend infrastructure for RISEx, a fully on-chain decentralized exchange where user orders are committed transactions on a custom Ethereum layer 2 blockchain network. Because RISEx keeps its trading logic together with other applications on the same blockchain state, scaling the exchange became more demanding as trading activity grew. RISE needed infrastructure that could meet users’ latency and throughput requirements while preserving its fully on-chain architecture. Using Amazon Web Services (AWS), the company matched compute, storage, and networking to those demands, increasing capacity for growing trading volume and new markets while creating a faster path to further performance improvements.
About RISE Labs
RISE Labs is a Singapore-based blockchain company that builds and provides support services for backend infrastructure like RISE Chain, powering on-chain trading applications such as RISEx.
Opportunity | Using AWS to meet on-chain trading demands for RISE
RISEx is a fully on-chain exchange, so every user order processed on it is a transaction on RISE’s own Ethereum blockchain, RISE Chain. Being fully on chain also means that RISEx carries out both order matching and settlement on the blockchain. Because RISEx and other applications on RISE Chain share blockchain state, RISE’s increasing workload demands made transaction processing more challenging.
Traders on RISEx need the exchange to process transactions and access blockchain state at a level of performance approaching that of centralized exchanges while retaining a decentralized architecture. This low latency is especially important for market makers, firms that provide liquidity on an exchange. Market makers frequently update or cancel orders as prices change, so delays can expose them to outdated prices and potential losses. “There’s a direct relationship between our latency and whether market makers can provide good liquidity on the books or even participate on the venue,” says Sam Battenally, CEO at RISE.
To keep latency low, RISE chose to deploy the infrastructure behind RISEx in the AWS Asia Pacific (Tokyo) Region for proximity to its business partners. “We definitely need AWS Tokyo for latency,” says Hai Nguyen, chief technology officer at RISE. “We had to rearchitect everything around that decision because latency is crucial to our users.”
Solution | Matching AWS infrastructure to RISE’s workload demand
To evaluate different processor options, RISE benchmarked its AWS infrastructure at multiple levels, from individual Ethereum Virtual Machine (EVM) transactions to full-node tests with historical chain data. For compute, RISE uses Amazon Elastic Compute Cloud (Amazon EC2), a service that provides resizable, secure compute capacity as virtual servers. The team runs its blockchain infrastructure on AWS Graviton processors, which are designed to deliver the best price performance for cloud workloads running on Amazon EC2. After benchmarking different processors against its RISEx chain-transaction processing workload, RISE decided to use Graviton4 for its production blockchain infrastructure. It later benchmarked and adopted Graviton5 as that variant became available.
After choosing a processor, the team evaluated processor characteristics against the demands of RISEx chain-transaction processing. As blockchain state grew, RISE needed faster access to frequently used data. The team moved active state to Amazon EC2 instance store volumes using local NVMe storage, helping RISE access blockchain state quickly enough to keep pace with its block interval.
For latency-sensitive trading traffic, RISE uses AWS PrivateLink—which establishes private connectivity between virtual private clouds, AWS services, and on-premises networks—to connect market makers and professional traders to its exchange backend and blockchain endpoints. Amazon Route 53, a reliable and cost-effective way to route users to internet applications, directs requests to regional infrastructure. Together, this architecture helps RISE keep latency-sensitive trading traffic close to its exchange infrastructure and route users to the appropriate regional resources.
Outcome | Increasing capacity for on-chain markets on AWS
These infrastructure choices gave RISE more capacity for on-chain trading while providing a faster path to further improvements. In the migration from Graviton4 to Graviton5, RISE saw mean throughput go from 1.31 GGas/s (a term among Ethereum users for EVM computational work) to 2.38 GGas/s—an improvement of 82 percent. Meanwhile, latency was about 43 percent lower, with mean transaction duration going from 1.52 ms to 859 µs. “Before, we thought we’d need to do a lot of software-level improvements to support 50 to 100 markets,” says Nguyen. “But with Graviton5, suddenly, we could support 200.”
Moving active blockchain state to Amazon EC2 instance store with NVMe storage made state access roughly 20 times faster. And while querying more than 1 year of historical state, RISE sustained peak throughput of 1.5 GGas/s, compared with about 250 MGas/s on its earlier architecture.
Within 5 months of launching, RISEx reached 20,000 traders, processed approximately $10 billion in trading volume, and served about 3,000 daily active users. RISE is now working toward thousands of markets while pursuing software improvements, including parallel EVM processing and state caching. “On AWS, we can get immediate improvements in a few days without ever touching or changing any binary or logic we’re already running in production,” says Nguyen.
Before, we thought we’d need to do a lot of software-level improvements to support 50 to 100 markets. But with Graviton5, suddenly, we could support 200.
Hai Nguyen
Chief Technology Officer, RISE LabsAWS Services Used
More Customer Stories
Did you find what you were looking for today?
Let us know so we can improve the quality of the content on our pages