Moving the Fleet Shadow Off the Relational Monolith Without Losing the Twin
The legacy fleet shadow is almost always a wide table keyed by VIN, updated by an ingestion service that runs read-modify-write on every telemetry frame, and it fails in one characteristic way: the database stalls and every consumer goes blind at the same moment. Replacing it with sharded shadow actors fed from a partitioned, replayable event log turns that global outage into a local one. The price is that the source of truth moves, and most of the migration budget goes into making that move safe rather than into the new infrastructure.
Where the truth lives after cutover
In the new fabric the shadow actor is a cache. The durable record is the per-vehicle partition of the log, and any actor can be killed, rescheduled on another node and rebuilt by replaying deltas from that vehicle's last keyframe. That makes the keyframe interval the parameter that holds the whole resilience story together. We run it at 120 seconds of vehicle time, which caps the replay after a lost shard at two minutes of deltas per vehicle and lets a rebalanced shard return to serving within the staleness budget instead of waiting on a cold rebuild. Shortening the interval buys faster recovery and pays for it in cellular uplink, because every keyframe is a full state snapshot rather than a compressed delta, so the budget line for keyframes should be argued directly in terms of recovery time after a shard loss.
The dual-write months
This is where it hurts. During the overlap both paths ingest the same fleet, and the expensive failure is quiet: the legacy service drops out-of-order frames, the new path applies them by sequence number, and when a delta lands on a base frame that never arrived, the resulting shadow looks plausible and is wrong. Nothing alarms, and anomaly clustering picks up the drift as if it were a real behavioural signal. The countermeasure is a state checksum computed on the vehicle and carried in every keyframe, compared against both shadows by a reconciliation job, which converts silent divergence into a countable mismatch rate per cohort. Running two ingestion paths roughly doubles ingestion compute for the length of the overlap (an estimate, since it depends heavily on how much of the legacy path can be shed early), and that cost buys exactly one thing: proof that the new shadows can be trusted before the old table stops being authoritative.
The cutover rule
Move a cohort to the new fabric only when its shadows have matched the legacy table on keyframe checksums across a full fleet duty cycle and the cohort has survived a deliberately forced shard loss without breaching the staleness budget, because anything short of that is a schedule decision presented as an engineering one.
What may degrade and what must not
Under partial failure, fleet-wide aggregation should keep running on whichever partitions are healthy, provided every aggregate carries its coverage, meaning the fraction of the cohort that actually contributed. An anomaly cluster computed over a partial view without that label is worse than no cluster at all. The one thing that cannot degrade is the per-vehicle log itself. Automotive cybersecurity and software update regulations such as UNECE R155 and R156 expect a traceable record of vehicle state around every update campaign, and with the log as the record, that evidence survives the loss of any actor, shard or query layer. What you give up is the analyst's ad-hoc SQL against a single current-state table. Getting it back means a columnar projection fed from the log, which adds one more consumer to operate and one more lag to explain, and whether to fund it in this budget cycle or the next depends on how many teams were quietly running production decisions off that old table.
Technical FAQ: Can the legacy shadow table stay as a read replica after cutover to avoid rewriting downstream consumers?
It can for a limited window, fed as a projection from the log rather than by its own ingestion, but the projection must be clearly marked as derived and lagging so that no consumer starts treating it as authoritative again. If it stays past the point where its consumers have migrated, you end up paying to operate both stacks indefinitely while getting the resilience of neither.