Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idempotency for cosmos db java client as it is using http protocol #295

Open
bhukailas opened this issue Dec 4, 2019 · 0 comments
Open

Comments

@bhukailas
Copy link

bhukailas commented Dec 4, 2019

Let's say there is a document with the following JSON structure.

{
"name": "fernandez",
"age": 46
}

Now, Azure cosmos DB makes a post request and at the server end the document is created successfully., But the response is not proper due to transient errors in the network. Now If the client retries there a duplicate document gets created. This means Cosmos db needs to provide idempotency for creating documents.

Currently, I do not find any header which takes idempotency key from clients.

@bhukailas bhukailas changed the title Idempotency for cosmos db java client as it is rest ultimately Idempotency for cosmos db java client as it is using http protocol Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant