An implementation of Amazon's Kinesis built on LevelDB
The Kinesis equivalent of dynalite.
To read and write from Kinesis streams in Node.js, consider using the kinesis module.
NOTE: Starting with v1.0, SSL/HTTPS is no longer the default. Use
--ssl to enable pre-v1.0 behaviour.
$ kinesalite --helpUsage: kinesalite [--port <port>] [--path <path>] [--ssl] [options]A Kinesis http server, optionally backed by LevelDBOptions:--help Display this help message and exit--port <port> The port to listen on--path <path> The path to use
// Returns a standard Node.js HTTP servervar kinesalite =kinesaliteServer =// Listen on port 4567kinesaliteServer
var AWS =var kinesis = endpoint: ''kinesis
Or with the kinesis module (currently only works in https mode, when kinesalite is started with
var kinesis =kinesis
The Java AWS SDK recently changed their Kinesis client to default to the CBOR protocol, which kinesalite doesn't support – you may see an error like this:
com.amazonaws.AmazonServiceException: Unable to parse HTTP response content (Service: AmazonKinesis; Status Code: 404; Error Code: null;
You can set the
AWS_CBOR_DISABLE environment variable to disable this (any value should work, eg
1) before invoking any of the Kinesis calls in the Java SDK.
With npm do:
$ npm install -g kinesalite