(Advertisement)

top ad mobile advertisement
news2h ago

Aptos runs transactions in parallel first and sorts out the collisions after

Aptos uses Block-STM, a parallel execution engine that optimistically runs all transactions simultaneously and re-executes only those that conflict, taking a different approach to parallelism than Solana and Sui.

Aptos runs transactions in parallel first and sorts out the collisions after

(Advertisement)

native ad1 mobile advertisement

A different bet on parallelism

Most parallel blockchains ask developers or users to declare, upfront, which data a transaction will touch. @Aptos takes the opposite approach. Its execution engine, Block-STM, optimistically assumes all transactions in a block are independent and runs them simultaneously without any prior dependency declarations.

Block-STM optimistically assumes that all transactions are independent and executes them in parallel, recording their read and write sets. Those sets are then used to validate the results, which leads to re-execution if a transaction fails validation. The final output is identical to what you would get from processing every transaction one at a time in the block's preset order, preserving determinism without sacrificing speed.

Block-STM enforces that the outcome is consistent with executing transactions according to a preset order, leveraging that order to dynamically detect dependencies. At its core is a novel, low-overhead collaborative scheduler of execution and validation tasks.

The trade-off: contention under load

The approach works well when transactions are touching different parts of the network state, which covers most everyday activity. Rather than determining upfront which transactions conflict, Block-STM executes all transactions in a block in parallel speculatively, then detects conflicts after the fact and re-executes only the transactions that touched overlapping state. For workloads where most transactions are independent, this delivers high throughput without requiring explicit ownership tracking.

The cost emerges during busy periods. Block-STM achieves great performance for low-contention workloads, but it struggles under high contention due to frequent re-executions. When shared state is heavily contested, re-execution overhead increases. This is a trade-off both Aptos Labs and independent researchers acknowledge openly.

The design stands in contrast to the approaches taken by Solana and Sui. In Software Transactional Memory, there is no need for transactions to explicitly declare dependencies. While users previously had to declare dependencies when creating transactions, Aptos's parallel engine removes this requirement. Sui, by comparison, groups transactions by the objects they target and processes these groups in parallel across validator machines, a model that front-loads conflict resolution rather than resolving it speculatively after the fact.

In benchmark conditions, Block-STM achieves up to a 20x speedup over sequential execution on low-contention workloads and a 9x improvement on high-contention workloads using 32 threads. Whether those gains hold up at scale under real-world demand remains the central question for the $APT network.

Sources
Aptos Official Documentation: Transaction Execution
Block-STM Research Paper: Scaling Blockchain Execution (arXiv)
NEMO: Faster Parallel Execution for Highly Contended Blockchain Workloads (arXiv)

Latest News

Read More...

Author

Crypto Rich profile photoCrypto Rich

Rich has been researching cryptocurrency and blockchain technology for eight years and has served as a senior analyst at BSCN since its founding in 2020. He focuses on fundamental analysis of early-stage crypto projects and tokens and has published in-depth research reports on over 200 emerging protocols. Rich also writes about broader technology and scientific trends and maintains active involvement in the crypto community through X/Twitter Spaces, and leading industry events.

Join our newsletter

Sign up for the very best tutorials and the latest Web3 news.

Subscribe Here!
BSCN

BSCN

BSCN RSS Feed

BSCN is your destination for all things crypto and blockchain. Discover the latest cryptocurrency news, market analysis, and research covering Bitcoin, Ethereum, altcoins, memecoins and everything in between.