Build high-volume actor apps in Rust. Share their logic across the Internet Computer, browsers, native clients and servers.
ReactorHigh-throughput actor communication
Reactor batches messages headed to the same actor into one call. In the 16-actor Heavy16 benchmark, it carried 360,000 message frames in 2,434 calls.
RechainState machines with verifiable history
Write business rules as pure reducer logic. Each reducer owns its state. For a recorded action, Rechain commits their changes together and appends a block to a chain you can verify and replay.
TaktDurable workflows across actors
An actor can run many workflows at once. Define each one as steps, branches and waits. Takt saves each run’s progress and resumes it when the expected reply arrives.
AshrootRelations between records
Define tables and the relations between them in your database schema. A cinema can require every screening to reference an existing room and tell Ashroot to block deletion of any room still in use.
Write business rules as pure reducer logic. Each reducer owns its state. For a recorded action, Rechain commits their changes together and appends a block to a chain you can verify and replay.
An actor can run many workflows at once. Define each one as steps, branches and waits. Takt saves each run’s progress and resumes it when the expected reply arrives.
Define tables and the relations between them in your database schema. A cinema can require every screening to reference an existing room and tell Ashroot to block deletion of any room still in use.
Showtime’s seven-actor exchange acknowledged 20,000 order additions and cancellations per simulated second over the final ten seconds of a PocketIC run. Those actions arrived in 40 ingress updates per second, with 500 actions in each.
RSX completed 594,000 steps and 19,200 workflows in 28.8 seconds of simulated time. Reactor packed 360,000 message frames into 2,434 calls between actors, averaging 148 frames per call. The run includes the time to finish queued work.
Logical requests and notifications per simulated second
6,250
Physical messages between actors per simulated second
Six collectors and one matcher handled 600,000 adds and cancels on a 50,000-order book. At 60 ingress updates per simulated second, the exchange acknowledged 30,000 actions per second over the final ten seconds of arrivals. Orders rested on the book until canceled. Signing and verification ran with the simulated clock paused.
Order actions per ingress call
500
Simulated seconds until all actions were acknowledged
The Internet Computer limits message sizes and the queue between each pair of actors. DFINITY’s Rust CDK gives you the APIs for calls, timers and state. RSX supplies the batching, workflow engine and replayable log that a team building a high-volume app would otherwise have to put together.
A Showtime trader signs up to 20 actions with one Schnorr signature. A submitter combines 25 full packs into a single update. In the P2P game, a browser can forward another player’s move and the referee can still verify who signed it.
Showtime divides accounts among six collector actors. While one collector checks an order, another can check an order for a different account. Because the collectors own separate accounts, a distributed runtime can spread that work across cores or servers.
Each module chooses its collections and where they live, in the Nyxus heap or Hylix stable memory. Tracking free space by page and allocation size cut Heavy16 from 105.15B to 95.88B instructions in a separate Nyxus allocator test.
In the app, peers relay encrypted orders from the browser. The Showtime benchmark submitted packs directly and timed the trip from collector to matcher and back. Signing, encryption and verification queries ran while the simulated clock was paused.
The trader’s browser signs up to 20 order actions with one Schnorr signature, then encrypts the pack for the trader’s home collector. A peer forwards the encrypted pack to an authorized submitter.
Ingress
Group 25 full packs
The submitter gathers 25 full packs for the same collector. The collector verifies their signatures in a query and seals the batch. The submitter sends that batch back in one ingress call carrying 500 order actions.
Reactor
Share a call to the matcher
The collector checks the cancellation against the trader’s account. Reactor carries it to the matcher alongside other commands. In the separate 16-actor Heavy16 run, Reactor carried 360,000 frames in 2,434 calls, about 148 frames per call.
Order book
Remove the resting order
The cancellation tells the matcher which range of the queue belongs to the order. The matcher removes the quantity still open there and sends the exact result back to the trader’s home collector.
Acknowledgement
Release the reservation
The collector releases the funds or inventory tied to the canceled quantity. Once the collector has applied every result in the batch, it sends an acknowledgment. The matcher records it in Rechain and retires those results in the same commit.
In the arena game, peers relay signed player inputs while the browser shows the next move immediately. A referee actor verifies the inputs for a 128-tick window before it commits the checkpoint. Follow a signed move through the P2P game
Candid vs. IC Wire
More room for your actor’s API
Our 128-method Candid test shows why API size matters. With one shared schema, the executable code took up 1.03 MiB. Giving each method its own schema pushed that to 8.90 MiB of the IC’s 12 MiB code budget. We compared codecs on a separate API with 20 updates.
The empty RSX actor was 196,561 bytes. Adding the API took 92,812 more bytes with IC Wire and 538,110 with optimized Candid.
Whole module · uncompressed bytes
DFINITY ic-cdk · stock Candid
775,955
RSX · optimized Candid
734,671
RSX · IC Wire
289,373
Including the runtime, the IC Wire module was 60.6% smaller than RSX with optimized Candid and 62.7% smaller than DFINITY ic-cdk with stock Candid.
67.2% fewer instructions per transfer acknowledgement
One update decodes a transfer record and returns a receipt. Both RSX builds do the same work, using IC Wire or optimized Candid.
Complete update · mean instructions
DFINITY ic-cdk · stock Candid
539,306
RSX · optimized Candid
506,658
RSX · IC Wire
166,266
RSX with IC Wire used 69.2% fewer instructions than DFINITY ic-cdk with stock Candid.
All three builds implement the same 20 updates. The DFINITY build uses stock Candid 0.10.38 on Wasm32. The RSX builds use optimized Candid 0.10.38 or IC Wire 0.7.21 on Wasm64. Each instruction count is the mean of eight complete updates, including decoding, the reply and memory-page charges.
Start from the release you support. Each lane gives you the rules, a tested example, and the skill your coding agent can follow. Rehearse every lane your change touches.
Enhanced orthogonal persistence keeps the actor’s Wasm memory across upgrades. When a module’s saved data changes shape, give it a new version and a typed conversion. RSX checks the saved memory contract before opening the actor’s state.
Reindex rebuilds indexes over compatible primary storage. Recode converts rows or changes storage engines. Before the upgrade completes, Ashroot checks every foreign key against the new database.
Move unchanged collections or explicitly convert their entries inside the owner. Rebuild indexes when key ordering changes and check retained graph cursors against their saved contracts.
Qualify the exact build pair when implementation fingerprints change and the persistence contract stays compatible. Plan a separate migration for an incompatible storage format.
When a workflow spans actors, rehearse the upgrade with messages still queued, replies saved, and callbacks pending. Reactor delivery checks
Tools
Profile actor calls and trace workflows
See which code cost the most in a ledger transfer, or follow a purchase workflow as it retries a payment.
Built by the RSX team
RSX IC Profiler
Trace the cost of a PocketIC call down to individual Wasm blocks and memory pages. Read the capture in your browser or let an agent query it through MCP.
1 / 6
Full size ↗Compute Larger tiles carry higher recorded Wasm block charges. Select a tile to see the block and the code around it.PocketIC ledger transferFull size ↗Executions Compare the instruction totals, heap page charges, and outcomes for a transfer and a balance query. Then choose the call you want to inspect.PocketIC ledger trace with transfers and a balance queryFull size ↗Memory pages Blue pages were read only. Orange pages were written. The map shows whether the transfer touched a small area of the heap or spread across it.PocketIC ledger transferFull size ↗Byte reads Zoom in to see which bytes a call actually read. Brighter marks indicate more frequent reads within this snapshot window.PocketIC ledger snapshots taken immediately before and after the first transferFull size ↗System overview Follow work across PocketIC components. The bars show elapsed host time. CPU time, sampled memory, and capture coverage appear separately.PocketIC system profile with 30 ledger transfers and a balance queryFull size ↗Rounds Round 317 used 47.44% of its recorded worker budget. Changed memory reached 229.79 MiB, past the 190.73 MiB limit the scheduler checks between passes.Separate Heavy16 PocketIC capture, round 317
Follow a recorded workflow through its graph, branches, and attempts. Switch views to see where it waited and where it spent instructions.
1 / 5
Full size ↗Graph Trace the route through the workflow. The selected step shows that one branch finished and the token balance read is still active.Motoko account audit captureFull size ↗Execution history Follow the events in order. The first payment attempt finishes, the retry is scheduled, and a second attempt starts within the same visit.Motoko purchase workflow, timed retry in PocketICFull size ↗Timeline Follow the Collect payment row. Purple marks time spent waiting for a reply from another actor. The timer marks the wait between attempts.Same purchase capture as Execution historyFull size ↗Instructions The blue bars show the caller’s recorded instructions. The purple bars show instruction counts reported by the other actors. Select a bar to inspect its attempt.Participant metrics fixtureFull size ↗Step Inspector Open Pay seller to see why the purchase stopped here. The side panel shows the operation ID, the reported error, and the attempts that used up the retry budget.Motoko purchase workflow, blocked execution capture
RSX uses Creusot, Kani, and Verus to verify parts of its Rust runtime. The page-pool proofs check which memory recovery can reclaim and which it must preserve.
The page-authority checkpoint covered 197 proof reports on native x86-64 under the documented memory backing assumptions. Read the proof record · Confirmed fixes
Reject partial memory pages
A proof review found that a native provider accepted an incomplete final page during initialization. It now checks the image length before changing it. The fix passed 44 platform tests.
Minima narrowed an owner ID before checking it against the owner table. It now validates the full ID first. The fix was checked on Wasm32 and passed 483 native tests and doctests.
RSX compiles Rust to WebAssembly and defaults to Wasm64. The IC meters the instructions each call executes, so most benchmarks on this site report instruction counts.
The canister isolates the actor’s WebAssembly memory. If an update traps, the Internet Computer rolls back the writes made in that execution. Changes the actor committed in earlier executions stay in place.
Committed state carries forward to the next call. On a KEEP upgrade, the IC retains Wasm memory. RSX checks the saved memory contract before opening it. Typed migrations can change application data when the Store kernel, allocator, and compiler remain compatible.
For recorded actions, Rechain commits the state change and its history block together. In an actor’s database, Ashroot enforces the relationships and uniqueness rules you declare and keeps indexes up to date.
One set of game rules, in the browser and on the IC
Press jump and the browser shows the move immediately, using the game’s Rust rules. The referee actor runs the same rules on verified inputs and commits a checkpoint. The browser uses that checkpoint to correct its prediction.