Migrating from 9.x
Wow V10 is a redesign, not an upgrade in place. It keeps what a 9.x service is about, aggregates, commands, events, sagas, projections and queries, and rebuilds the machinery under them. This page explains what changes, what the way across looks like, and where to start.
These tools migrate from Wow 9.x only. Aggregates from another system are imported with a creation command that declares when each was created (Import from Another System).
What changes
| Topic | 9.x | V10 |
|---|---|---|
| Publishing events | Append, then publish to a bus: a crash between the two loses the event for every observer | No event bus: subscriptions read the log from their own checkpoints, and resume after a crash |
| Event channels | Domain events and state events on two buses, unordered between them | One log; the state after each commit travels with its events |
| State | Mutable objects, with a reload when something fails | Mutable (the default) or immutable; the kernel guarantees atomicity and a stable view of each version |
| Binding | Reflection at run time | Generated by the compiler at build time |
| Concurrency model | Reactor | Coroutines; Reactor handlers through an adapter module |
| Failures | Logged and acknowledged by default; retried through the compensation service | Recorded in a failure ledger; the failing aggregate is parked and retried, nothing is skipped |
| Read models | The snapshot is the read model; projections cannot be rebuilt | The snapshot is still the default read model; every read model can be rebuilt from the log |
| Contract | OpenAPI with x-wow-* extensions | The Manifest, from which routes, OpenAPI, clients and views are derived |
| Identity | Tenant and owner in routes and command fields | One aggregate reference decided at admission; tenant, owner and space come from the authenticated caller |
| Compatibility | Frozen surfaces and compatibility debt | No compatibility code: the migration layer converts once |
Architecture overview explains the V10 design from first principles; 9.x capabilities in V10 lists where each 9.x capability went.
The way across
Migration happens once, in one place, and leaves nothing behind. V10 itself contains no 9.x code: 9.x type names, annotations, configuration keys, routes and storage formats exist only in the migration tools.
The recommended path is offline, the whole estate in one window. The estate is every 9.x service tied to the one you migrate by events, commands, calls or api jars:
- List the estate and its API dependency graph, cycles included, before any code.
- Prepare in dependency order: shared libraries, then API types, then domains and contracts, then servers and configuration; base services before the services that consume them.
- Develop the front ends once the services' contracts are stable, and release them in the same window.
- Cut over in one window: stop every 9.x service, import, start V10 and let it catch up, verify, release the front ends, open the traffic. The decision to go back is taken before the traffic opens.
The preparation goes in order; the go-live cannot. V10 reads no 9.x topic, the api jars of the two versions cannot share a class path, and the routes, headers and error bodies all change, so a service others depend on cannot go live first on its own, and an old front end cannot run against a new service. Cut Over is the path in full.
Each service of the estate goes through three steps:
- Source. The
wow-migrateagent Skill rewrites the service's Kotlin source, configuration and clients. Rewriting is semantic, not mechanical: an error handler becomes a rejection or a saga, a processor becomes subscriptions, identity leaves the command bodies. The rewrite is accepted when the service compiles and its domain tests pass. While it renames commands and events, the Skill writesmigration-map.json, which records every change of name or shape. Migrate the Source, Configuration Keys and HTTP and TypeScript Clients describe the rewrite. - Data. The
migrate-datatool checks the map against what the 9.x store really holds and against the V10 Manifest, imports the event history into the V10 log, and compares every aggregate it can with its 9.x snapshot. By default 9.x stops writing for the whole migration; a large system imports while 9.x serves, follows what it keeps writing, and stops only for a short final pass. The rebuilt state matching 9.x is also the proof that the rewritten evolve functions are right. Migrate the data describes the procedure. - Cut over. In the estate's window 9.x stops writing: import, compare, write the snapshots, start V10, switch traffic. An estate whose import does not fit the window imports while 9.x serves and stops only for a final pass, V10 waiting on standby. Custom projections are rebuilt by their subscriptions; they are not migrated. Cut Over is the window, the online exception, a service with no links, and the two ways back.
The data side follows two rules. Nothing is guessed: a 9.x event type, command, reserved key or failed execution that the map does not account for stops the tool before it writes anything. No unexplained difference is accepted: every kind of difference the comparison reports is either a known 9.x defect or an intended change, and someone signs it off before the cut-over.
What you need
- Start from the last 9.x minor version. Migration is supported from the last minor version of 9.x to 10.0. Upgrade within 9.x first.
- A 9.x MongoDB event store. The data tool reads the 9.x MongoDB store. A service on the 9.x Redis or Elasticsearch event store moves its data to the 9.x MongoDB store first.
- Gradle. V10's compile-time binding runs in Gradle, through KSP and the Wow Gradle plugin. Maven builds are not supported.
- JDK 21, and JDK 25 to run in production (The JDK).
How long the tools are supported
The migration tools are maintained throughout 10.x and removed in 11.0. The next major version will bring its own migration from 10.x.
The 9.x line is maintained on the v9 branch, and its documentation is served under /9.x/.