KandraTimestamp
object KandraTimestamp
Utilities for generating explicit write timestamps in microseconds.
Use KandraTimestamp when processing events out of order — passing an explicit timestamp ensures last-event-wins conflict resolution instead of last-server-write-wins.
// Idempotent webhook handler — use event timestamp, not server time
walletRepo.save(wallet, timestampMicros = KandraTimestamp.fromInstant(event.occurredAt))Content copied to clipboard