Skip to main content

Module compensation

Module compensation 

Source
Expand description

Typed compensation hints for rejected sync deltas.

When the Origin rejects a CRDT delta (constraint violation, RLS, rate limit), it sends a CompensationHint back to the edge client. The edge uses this to roll back optimistic local state and notify the application with a typed, actionable error — not a generic string.

Enums§

ArchivedCompensationHint
An archived CompensationHint
CompensationHint
Typed compensation hint sent from Origin to edge when a delta is rejected.
CompensationHintResolver
The resolver for an archived CompensationHint