Moving Fleet Shadows from a Document Store to an Actor Fabric Without Going Blind
Most fleets still keep one shadow document per vehicle in a key-value store. Every report overwrites it, and batch jobs scrape it for analytics. That holds up until a shard stalls in the middle of an over-the-air campaign and the whole fleet view goes stale at once, because state, ingestion and query all sit in the same failure domain. An actor fabric with delta telemetry puts those three into separate domains, so the budget case comes down to what still answers correctly while one of them is down.
Where the old stack actually breaks
The document store fails as one unit. When a shard leader stalls, writes pile up in the broker, and readers get either timeouts or old data that doesn't show its age. The batch anomaly jobs then take in a gap they have no way of seeing. In an actor fabric, each vehicle twin is a single-writer entity: it owns its state, applies deltas in order, and saves snapshots plus a delta log to a store that sits off the query path, so losing a node means a known set of actors rehydrating elsewhere, not a fleet-wide stale read. The price is that you now run cluster membership, a placement service and an event store, and each one needs its own failure drills. What that buys is a blast radius measured in partitions instead of in fleets.
The part that hurts
During migration, both stacks consume the same uplink, and they will disagree. Delta compression means the new twin rebuilds state from a base plus changes. A single dropped or reordered delta therefore leaves a twin that is confidently wrong, where the old full-document overwrite fixed itself on the next report. You need per-signal-group sequence numbers, a gap detector that asks the vehicle for a full keyframe, and a reconciliation job that compares the two shadows. By our estimate, dual running adds roughly a third to cloud spend while it lasts, and the measurable return is a divergence rate you can drive to zero before cutover. The failure that actually takes these systems down comes later. A node dies, its partitions move, and every displaced actor replays its delta chain at the same moment. That hammers the event store until healthy actors on other nodes time out on their own persistence writes, and the failure spreads.
Sizing snapshots against staleness
Agree on a staleness bound the business will sign off on. We use 120 s for fleet dashboards and campaign gating, and any twin served past that age carries an explicit stale flag instead of passing as current. The decision rule follows from it: if the worst-case replay of a displaced partition, at the event store's throttled read rate, cannot finish inside that bound, snapshot more often before buying more nodes. Snapshot frequency trades store write cost directly against recovery time, while extra nodes only shrink partitions and leave the long chains in place. Put rehydration behind admission control on the event store, so the replay rate is a value you configure rather than whatever the failure produces, while the broker and the vehicle's own outbound queue hold traffic so that data arrives late and visibly flagged but is never lost.
What the regulators pay for
Cybersecurity and software update regulation such as UNECE R155 and R156 turns this design into a line item that defends itself, because an ordered per-vehicle event log is the evidence auditors ask for to prove which software state a vehicle was in before a campaign. That leaves one decision: keep the old document store as a read-only fallback until the first full campaign after cutover, at what we estimate is under a tenth of the dual-run cost, in exchange for a rollback path you can trigger in minutes rather than rebuild in weeks.
Technical FAQ: Can we skip dual running by replaying recorded uplink traffic into the new fabric?
Replay checks the twin logic and the snapshot sizing, but it cannot reproduce the live ordering faults, duplicate deliveries and partial outages that cause divergence. Use replay to shorten the dual-run period, not to replace it, and cut over only when live divergence has stayed at zero through at least one node failure drill.