Giter Club home page Giter Club logo

data-store's Introduction

Data Store

A lightweight in-memory data store in Clojure.

Similar to Redis®* but fewer features.

Run server locally

  1. Install Leiningen if you haven't already
  2. Install the Redis CLI
  3. lein run
  4. Open another terminal tab
  5. redis-cli PING
  6. Expected: PONG
  7. Run any other Redis CLI command

Run unit tests

lein test

Package server for production

lein uberjar

Run server in production

java -jar target/uberjar/data-store-<version>-standalone.jar

Benchmark server

  1. Run server
  2. Open a new terminal tab
  3. redis-benchmark -t set,get, -n 1000000 -q
  4. Expected:
WARNING: Could not fetch server CONFIG
SET: 72270.00 requests per second, p50=0.343 msec
GET: 74833.49 requests per second, p50=0.351 msec
  1. Stop the server you ran in step 1 with Control-C.
  2. redis-server
  3. Repeat step 3
  4. Expected:
SET: 80729.80 requests per second, p50=0.303 msec
GET: 81512.88 requests per second, p50=0.319 msec
  1. That's how this server's performance compares to Redis®.

Bugs

Please open an issue on GitHub.

License

GPLv2 or later


* Redis is a registered trademark of Redis Ltd. Any rights therein are reserved to Redis Ltd. Any use by this repo is for referential purposes only and does not indicate any sponsorship, endorsement or affiliation between Redis and this repo.

data-store's People

Contributors

kienstra avatar

Watchers

 avatar  avatar

data-store's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.