Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dynalite

Package Overview
Dependencies
Maintainers
1
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dynalite

A mock implementation of Amazon's DynamoDB built on LevelDB

  • 0.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
78K
decreased by-12.04%
Maintainers
1
Weekly downloads
 
Created
Source

dynalite

Build Status

NB: Not currently working on node v0.8.x due to this issue - works fine on latest stable version (v0.10.x) though

A mock implementation of Amazon's DynamoDB, focussed on correctness and performance, and built on LevelDB (well, @rvagg's awesome LevelUP to be precise).

This project aims to match the live DynamoDB instances as closely as possible (and is tested against them in various regions), including all limits and error messages.

Example

$ dynalite --help

Usage: dynalite [--port <port>] [--path <path>] [options]

A mock DynamoDB http server, optionally backed by LevelDB

Options:
--help                Display this help message and exit
--port <port>         The port to listen on (default: 4567)
--path <path>         The path to use for the LevelDB store (in-memory by default)
--createTableMs <ms>  Amount of time tables stay in CREATING state (default: 500)
--deleteTableMs <ms>  Amount of time tables stay in DELETING state (default: 500)
--updateTableMs <ms>  Amount of time tables stay in UPDATING state (default: 500)

Report bugs at github.com/mhart/dynalite/issues

Or programmatically:

// Returns a standard Node.js HTTP server
var dynalite = require('dynalite'),
    dynaliteServer = dynalite({path: './mydb', createTableMs: 50})

// Listen on port 4567
dynaliteServer.listen(4567, function(err) {
  if (err) throw err
  console.log('Dynalite started on port 4567')
})

Installation

With npm do:

$ npm install dynalite

TODO

  • Add ProvisionedThroughput checking
  • Add config settings to turn on/off strict checking
  • Allow for other persistence types (LevelDOWN-Hyper, etc)
  • Use efficient range scans for Query calls
  • Implement ReturnItemCollectionMetrics on all remaining endpoints
  • At what point does BatchGetItem#UnprocessedKeys get triggered?
  • Is the ListTables limit of names returned 100 if no Limit supplied?

Keywords

FAQs

Package last updated on 21 Nov 2013

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc