Socket
Book a DemoInstallSign in
Socket

amazon-dax-client

Package Overview
Dependencies
Maintainers
7
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amazon-dax-client

Amazon DAX Client for JavaScript

1.2.4
npmnpm
Version published
Weekly downloads
6.3K
-36.44%
Maintainers
7
Weekly downloads
 
Created
Source

Amazon DAX Client for JavaScript

DAX is a DynamoDB-compatible caching service that enables you to benefit from fast in-memory performance for demanding applications.

This client library provides access from NodeJS to DAX.

Installing

The Amazon DAX client only runs from NodeJS, and can be installed using npm:

npm install amazon-dax-client

Usage and Getting Started

You can follow the Getting Started tutorial at:

https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DAX.client.sample-app.html

To quickly use DAX, replace AWS.DynamoDB with AmazonDaxClient:

const AmazonDaxClient = require('amazon-dax-client');

// Replace this ...
var ddb = new AWS.DynamoDB({region: region});
/// with this ...
var dax = new AmazonDaxClient({endpoints: [endpoint], region: region});

// If using AWS.DynamoDB.DocumentClient ...
var doc = new AWS.DynamoDB.DocumentClient({service: dax});

The DAX endpoint can be found the AWS console or by using aws dax describe-clusters from the command line.

Getting Help

Please use these community resources for getting help.

Changes

1.2.4

  • Minor bug fixes.

1.2.3

  • Retry prefer to choose a different node.
  • Adjust exponential back off delay and strategy.

1.2.2

  • Fix unrecoverable request timeout after DAX node restart.
  • Fix connection timeout during DAX server restart.
  • Allow retry for IO exceptions.
  • Remove verbose connection error logs.
  • Fix empty string encoding bug.

1.2.1

  • Bug fix in TransactionGetItems Api to return Key element correctly.

1.2.0

  • Support for DynamoDB Transaction Apis.
  • Fix excessive background endpoint refresh calls.

1.1.4

  • Fix connection leaks on timeout.
  • Support configurable requestTimeout. (Default: 60s)

1.1.3

  • Fix transient error on tube cleanup
  • Fix UpdateItem result parsing with a subset of attributes changed
  • Increase default connectTimeout and make it configurable

1.1.2

  • Fix socket leaks on validation errors
  • Fix SocketTimeout caused by connection establishment
  • Fix issue with update response if the item is not changed
  • Fix error decoding BatchWrite UnprocessedItems.

1.1.1

  • Fix socket leaks on errors

1.1.0

  • Brand new decoder for improved performance on large results
  • Improved connection/timer management to allow clean exit on Lambda

1.0.2

  • Improved connection/timer management to allow clean exit on Lambda

1.0.1

  • Initial release

Keywords

aws

FAQs

Package last updated on 20 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.