SaveStateResponse: Message<"virtufin.SaveStateResponse"> & { etag: string }

Type declaration

  • etag: string

    The etag of the value as read immediately after this write. Dapr's save RPCs never return the post-write etag directly (see ChangeNotification's doc comment above for the same limitation elsewhere), so this is populated via a follow-up read, not the write response itself.

    Meaningfully reliable only for the conditional-write case (a caller whose supplied etag matched, so Dapr's own compare-and-swap already proved no concurrent writer beat that write) -- the api-gateway spec's "Save state with matching ETag" scenario requires exactly this case. For unconditional and create-only writes it's still populated, but a concurrent writer landing in the gap between this write and the follow-up read would make it reflect THEIR write, not this one -- do not treat it as a strict guarantee for those paths.

    from field: string etag = 2;

from message virtufin.SaveStateResponse