Skip to content

Cosmos: Restore PATCH API #4048

@analogrelay

Description

@analogrelay

In #3764 , we temporarily removed the PATCH API while we revisit idempotency in the context of enabling automatic retries for all write operations. Since all other operations are generally retry-safe as long as the user accounts for conflict errors, the concern with PATCH was that (the increment in particular) may silently double-count in the context of an automatic retry for a write operation.

Our decision after reviewing things is to accept this risk and document it clearly. We've heard enough feedback from customers that PATCH is still useful even in the context of an increased RU cost and potential idempotency issues. Actually, we're still deferring this until post-GA. I mis-remembered some past context :). Just making that clear.

We'll be working to investigate a model that allows PATCH to be idempotent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CosmosThe azure_cosmos crate

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions