By using AWS re:Post, you agree to the AWS re:Post Terms of Use

Seeking PHP Solution for Querying DynamoDB Accelerator (DAX) Without AWS SDK

0

Hello everyone,

I hope you are all doing well.

I am currently working on a project where we extensively use DynamoDB and are experiencing performance lags. We attempted to leverage DynamoDB Accelerator (DAX) to mitigate this issue but encountered a significant roadblock: the AWS SDK for PHP does not currently support querying a DAX cluster.

We have been unable to find any example of a simple PHP function to query DAX without using the SDK. I wanted to reach out to the community to ask if anyone has managed to connect to a DAX cluster using only PHP, without relying on the AWS SDK.

If you have any examples, scripts, or libraries that you could share, it would be incredibly helpful. For reference, here is the GitHub issue discussing this problem: https://github.com/aws/aws-sdk-php/issues/2758

Thank you in advance for your assistance!

Best regards, DM

asked 5 months ago605 views
1 Answer
0

Here is a summary of operations to perform.

  1. Custom HTTP Requests

    • Manually construct and send HTTP requests to DAX cluster endpoints.
    • Handle low-level protocol details and authentication.
  2. Use Another Language or SDK

    • Consider Java SDK (supports DAX queries).
    • Create a small Java service exposing an API for PHP.
  3. Third-Party Libraries

    • Search for unofficial PHP wrappers or utilities.
    • Explore open-source projects related to DAX and PHP.
  4. Serverless Approach

    • Use AWS Lambda (Node.js, Python, or Java) as an intermediary.
    • PHP app invokes Lambda, which interacts with DAX.
profile picture
EXPERT
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions