An implementation of Amazon's Kinesis built on LevelDB
npm install kinesaliteKinesalite
----------

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
-------
``sh
$ kinesalite --help
Usage: kinesalite [--port
A Kinesis http server, optionally backed by LevelDB
Options:
--help Display this help message and exit
--port
--path
--ssl Enable SSL for the web server (default: false)
--createStreamMs
--deleteStreamMs
--updateStreamMs
--shardLimit
Report bugs at github.com/mhart/kinesalite/issues
`
Or programmatically:
`js
// Returns a standard Node.js HTTP server
var kinesalite = require('kinesalite'),
kinesaliteServer = kinesalite({path: './mydb', createStreamMs: 50})
// Listen on port 4567
kinesaliteServer.listen(4567, function(err) {
if (err) throw err
console.log('Kinesalite started on port 4567')
})
`
Once running, here's how you use the AWS SDK to connect
(after configuring the SDK):
`js
var AWS = require('aws-sdk')
var kinesis = new AWS.Kinesis({endpoint: 'http://localhost:4567'})
kinesis.listStreams(console.log.bind(console))
`
Or with the kinesis module (currently only works in https mode, when kinesalite is started with --ssl):
`js
var kinesis = require('kinesis')
kinesis.listStreams({host: 'localhost', port: 4567}, console.log)
`
Installation
------------
With npm do:
`sh``
$ 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 🐨