BlockSTM — Parallel Execution
Overview#
BlockSTM executes non-conflicting transactions in parallel using optimistic concurrency. This increases throughput while preserving deterministic results.
Developer Guidance#
- Minimize write conflicts: design contracts/modules so that common transactions touch disjoint storage/resources.
- Batch reads: group read-heavy operations to reduce contention.
- Idempotent semantics: ensure handlers tolerate retries in speculative execution.
Practical Tips#
- Structure Move resources so unrelated operations touch distinct objects/resources.
Observability#
- Monitor gas usage and failure modes during spikes.
- Use Move simulations and load testing to forecast cost under load.