13 — The store
The host keeps the store. Every write passes through it.
Guest · org.wasm
entity.apply(entities.employee, key: e_17, command: Move { to: d_sales })Host · commit 4812
In the transaction
employee e_17d_ops → d_sales
headcount(d_ops)12 → 11
headcount(d_sales)8 → 9
After the commit
live page/departments/d_sales
cached answerGET /departments
subscriptionaudit
In Go
tx.Exec("UPDATE employees SET department = $1 WHERE id = $2", …)