aws-sdk-rust
aws-sdk-rust copied to clipboard
Amazon DynamoDB Accelerator (DAX) is not working
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue, please leave a comment
What is the problem?
Hello all,
I am trying to use DAX, and I have the following problems.
I try to connect in this way.
let dax_endpoint = std::env::var("DAX_ENDPOINT").expect("DAX_ENDPOINT must be set");
let dynamodb_dax_config = aws_sdk_dynamodb::config::Builder::from(&config)
.endpoint_resolver(
Endpoint::immutable(dax_endpoint.parse().unwrap()),
)
.build();
let dynamodb_client = aws_sdk_dynamodb::Client::from_conf(dynamodb_dax_config);
Lambda Env Variables: DAX_ENDPOINT: DAX_DOMAIN:8111
I get this error:
thread 'main' panicked at 'scheme must be provided', /Users/xxx/.cargo/registry/src/github.com-1ecc6299db9ec823/aws-smithy-http-0.38.0/src/endpoint.rs:97:50
If I add the schema and I tried:
- dax://
- http://
- https://
I get time out:
INFO send_operation{operation="Query" service="dynamodb"}:provide_credentials{provider=default_chain}: aws_config::meta::credentials::chain: loaded credentials provider=Environment
error TimeoutError(RequestTimeoutError { kind: "API call (all attempts including retries)", duration: 5s })
I have tried this Node example: https://github.com/aws-samples/amazon-dax-lambda-nodejs-sample/blob/master/template.yaml
My Rust Lambda is in the same security group and subnets of the example run in Node.
If you need more, please let me know.
Dan
Version
v0.8.0
Platform
Lambda arm64
AWS Services
No response
Description
No response
Logs
No response
DAX is actually a totally separate handwritten service / client. The client has not been written in Rust yet. See #208
Actually, I'll leave this issue open as a feature request for future folks
⚠️COMMENT VISIBILITY WARNING⚠️
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
Is a Rust DAX client being worked on at all @rcoh?
The DAX client isn't currently being worked on. We prioritize feature requests based on the number of thumbs up on them, so if you need this, be sure to add yours! I'll add the community note to the issue to make that clearer 😄
is DAX still pending development in Rust? I do see https://crates.io/crates/aws-sdk-dax
is DAX still pending development in Rust? I do see https://crates.io/crates/aws-sdk-dax
That crate is for calling the DAX control plane APIs: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Operations_Amazon_DynamoDB_Accelerator__DAX_.html
There is currently no support for accelerated DynamoDB operations with DAX.
Hi! Keeping this thread alive, we are actively interested in native DAX Rust support 🚀
Still very interested in native DAX support too. Now that the SDK has had its general release, are there plans to build a Rust DAX client?
We plan to focus on bugfixes and developer experience (including compile times) this year. I don't expect we'll get to this.