awslabs / aws-sdk-rust

AWS SDK for the Rust Programming Language
https://awslabs.github.io/aws-sdk-rust/
Apache License 2.0
3.04k stars 247 forks source link

Amazon DynamoDB Accelerator (DAX) is not working #476

Open ymwjbxxq opened 2 years ago

ymwjbxxq commented 2 years ago

Community Note

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:

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

rcoh commented 2 years ago

DAX is actually a totally separate handwritten service / client. The client has not been written in Rust yet. See #208

rcoh commented 2 years ago

Actually, I'll leave this issue open as a feature request for future folks

github-actions[bot] commented 2 years ago

⚠️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.

constantincerdan commented 2 years ago

Is a Rust DAX client being worked on at all @rcoh?

jdisanti commented 2 years ago

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 😄

aaronvg commented 1 year ago

is DAX still pending development in Rust? I do see https://crates.io/crates/aws-sdk-dax

jdisanti commented 1 year ago

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.

stephenlb commented 1 year ago

Hi! Keeping this thread alive, we are actively interested in native DAX Rust support 🚀

constantincerdan commented 11 months ago

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?

Velfi commented 6 months ago

We plan to focus on bugfixes and developer experience (including compile times) this year. I don't expect we'll get to this.