Get the latest tech news

Deterministic Simulation Testing in Rust: A Theater of State Machines


How we designed our database for complete control over concurrency, time, randomness, and failure injection.

The confidence this provides in system correctness is transformative: developers can ship complex features at full speed, knowing that DST will catch any subtle regressions before they reach production. However, writing a new codebase from scratch gave us a golden opportunity to claim the responsibility of full control over concurrency, time, randomness, and failure injection. Confident in our decision, we chose to architect our new database as a set of state machines, heavily inspired by the actor-based concurrency model outlined in the sled simulation guide.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Rust

Rust

Photo of Theater

Theater

Photo of state machines

state machines

Related news:

News photo

A deep dive into Rust and C memory interoperability

News photo

I tried Servo

News photo

Blog series on creating an OS in Rust