Glen Arrowsmith Nov 2017 AWS Brisbane Meetup
twitter.com/garrows slides.com/glenarrowsmith/dax
-AWS Marketing Team
Unify your source of truth
Less management
Less code
-You
AKA, the slashdot effect
or the whatever kids use these days effect
🔥
"Using DAX is easy and requires no modification to your application logic, since DAX is compatible with existing DynamoDB API calls.
Â
DAX can be enabled with just a few clicks in the AWS Management Console or using the AWS SDK."
-AWS Marketing Team
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});
npm install --save amazon-dax-client
Error: NoRouteException: No endpoints available
0.98ms
1530%
It's got to go back to dynamo anyway
Effectively does nothing
It's got to go back to dynamo anyway
Uses read capacity
Just use memoize
var memoize = require('memoizee');
getDynamoItemFast = memoize(
getDynamoItemById,
{
async: true,
maxAge: 10000,
preFetch: true
}
);
getDynamoItemFast(customerId, function(err, res) {
//Do stuff.
});
Glen Arrowsmith Nov 2017 AWS Brisbane Meetup
twitter.com/garrows slides.com/glenarrowsmith/dax