Kinesalite
An implementation of Amazon's Kinesis, focussed1 on correctness and performance, and built on LevelDB (well, @rvagg's awesome LevelUP to be precise).
The Kinesis equivalent of dynalite.
To read and write from Kinesis streams in Node.js, consider using the kinesis module.
Example
$ kinesalite --help Usage: kinesalite [--port <port>] [--path <path>] [--ssl] [options] A Kinesis http server, optionally backed by LevelDB Options:--help Display this help message and exit--port <port> The port to listen on --path <path> The path to use
Or programmatically:
// Returns a standard Node.js HTTP servervar kinesalite = kinesaliteServer = // Listen on port 4567kinesaliteServer
Once running, here's how you use the AWS SDK to connect (after configuring the SDK):
var AWS = var kinesis = endpoint: 'http://localhost:4567' kinesis
Or with the kinesis module (currently only works in https mode, when kinesalite is started with --ssl
):
var kinesis = kinesis
Installation
With npm do:
$ npm install -g kinesalite
Footnotes
1Hi! You're probably American (and not a New Yorker editor) if you're worried about this spelling. No worries – and no need to open a pull request – we have different spellings in the rest of the English speaking world 🐨