What should I do when a REST request times out but the operation may still be running?
My Spring Boot service calls another API to start an operation that can take a few minutes: My service -> POST /operations -> Provider Normally the provider returns an operationId which I store and then use to check the status of the operation later. What should I do when the initial POST request times out? The provider might receive the request and successfully start the operation, but the response gets lost. Now my service has no way of knowing whether the operation was created or not. If I retry the POST I could be creating a duplicate operation. But if I don't, I might leave a valid operat
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.