Comments (6)
Hello @michael-freidgeim-webjet,
AWS services, including AWS Connect, operate on the principle of eventual consistency. So, immediately after creating a customer or case, it might not be available yet through the API.
Having said that, we've created an internal ticket-V1422063706
with the Amazon Connect Docs
team, requesting them to improve the documentation around eventual consistency and how to handle potential delays when querying recently created data.
I will mark this as Closing-soon
. Kindly let me know if you have further queries.
Thanks again for providing your feedback on the encountered issue.
Regards,
Chaitanya
from aws-sdk-net.
@michael-freidgeim-webjet Good morning. Thanks for opening feature request. The default retry mechanism would retry only on specific throttling and service timeout error codes. It is more generic and is handled at the Http pipeline level, which cannot be selectively used for specific service error codes (such as case not found for your use case). The probably cause for your issue is that after a case is created, it might take some time to replicate across different AWS regions. Hence, if you immediately invoke service operation for the specific case, it might not return results as expected.
Also note that the package AWSSDK.ConnectCases
is auto-generated from service models. Hence it might not be feasible to add additional parameters to methods generated by from the service models. You might want to develop a wrapper package for your specific use case to add this retry mechanism for specific operations.
I would review this with the team to check if there is any other workaround.
Thanks,
Ashish
from aws-sdk-net.
Thanks @ashishdhingra for your reply.
“Hence it might not be feasible to add additional parameters to methods generated by from the service models. You might want to develop a wrapper package for your specific use case to add this retry mechanism for specific operations.”
We’ve already implemented the retry mechanism in our code However the problem is not specific to our project and even to .Net, and will be beneficial, if it will be resolved by Amazon, rather that each team will resolved it by themselves after hitting intermittent errors.
By the “service model” do you mean rest api contract documented in https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-cases_CreateCase.html ?
If yes, the parameter should by added to the service model to be available for any language implementation.
from aws-sdk-net.
Thanks @ashishdhingra for your reply. “Hence it might not be feasible to add additional parameters to methods generated by from the service models. You might want to develop a wrapper package for your specific use case to add this retry mechanism for specific operations.” We’ve already implemented the retry mechanism in our code However the problem is not specific to our project and even to .Net, and will be beneficial, if it will be resolved by Amazon, rather that each team will resolved it by themselves after hitting intermittent errors. By the “service model” do you mean rest api contract documented in https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-cases_CreateCase.html ? If yes, the parameter should by added to the service model to be available for any language implementation.
@michael-freidgeim-webjet Service API models are pushed to downstream SDK systems from service teams. For .NET SDK, these are available here. The API operation definition specifies parameters required for operation, including any exception that is thrown by the service. The retry behavior is specific to downstream SDK(s), which define retry behavior for specific AWS service error codes, including throttling and timeout errors. Hence, the specific parameter as you suggested cannot be supported at API level as this not required for API operation, but instead client level implementation.
Thanks,
Ashish
from aws-sdk-net.
@ashishdhingra Thanks for explaining separation of concerns between the Service API and SDK. Service API returns exception and SDK implements retries for some known types of exceptions. SDK currently doesn’t have a mechanism to specify extra retry behavior on individual call level, but only on ClientConfig level for some known exceptions.
The problem is that the intermittent issue is not an exception of singe call and may be a genuine “not found” return. If application developer knows that the record has been created just millisecond before as a result of previous call, they should consider “not found” as a reason for retry.
If it is not feasible to implement, please consider to add a note in the documentation for individual operations, that may experience such issue, e.g.
If related objects(e.g. customer profile or case) are created just before the method call, they maybe not found immediately, as it might take some time to replicate across different AWS regions. If you experience (or likely to experience) such issue, consider to implement retry/delay mechanism for your call.
from aws-sdk-net.
Related Issues (20)
- X-Amz-Content-SHA256 should be present when querying Amazon OpenSearch Serverless HOT 2
- DynamoDB AttributeValue roundtrip of empty number or string sets HOT 13
- V4 Development: General strategy on how to fill in missing APIs HOT 5
- TransferUtility does not support downloading objects in Requester Pays buckets. HOT 10
- DisableFetchingTableMetadata leads to key exception if PropertyConverter is used HOT 3
- `region` set in profile in `$HOME/.aws/config` is ignored HOT 12
- TransferUtilityUploadRequest.UploadProgressEvent event not firing HOT 10
- V4 Development: TargetFrameworks HOT 2
- V4 Development: Sensible LangVersion
- Record Support in DynamoDBContext HOT 3
- Null QueueUrl when using LocalStack HOT 3
- DisableFetchingTableMetadata leads to InvalidOperationException if PropertyConverter is used HOT 6
- AWSSDK.S3 ListObjectsV2 API returns Size incorrectly every other request for some subset of files +/- 2 bytes HOT 6
- V4 Development: DefineConstants requires an overhaul HOT 1
- AmazonS3Client.PutObjectAsync does not retry with HttpClient HttpCompletionOption.ResponseHeadersRead when using devproxy HOT 5
- Amazon.CloudWatch.Model.MetricDatum timestamp is not set correctly HOT 3
- Unable to use S3 Path Style Access S3 URL HOT 3
- Cannot Get DynamoDB record when model inherits from base class with member with the same name HOT 8
- Unable to connect to Timestream from using endpoint (.Net) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-sdk-net.