Giter Club home page Giter Club logo

in-memo-db's Introduction

In Memo Database

Overview

The goal of this development is to create an in-memory cache that can be used by http servers and other services and is faster at retrieving and setting data than conventional databases. It stores data in RAM and provides a simple interface for clients to access their data through a custom protocol built on top of TCP sockets.

Features

  • 12 factor app principles
    • codebase tracked in version control
    • no dependencies (no libraries, only built in functions)
    • configurable by environment variables
    • no backing services
    • containerized (build stage)
    • app runs as a singular process (no replica set behavior implemented yet)
    • service exported via port binding
    • runs as a UNIX process
    • graceful shutdown on SIGTERM or SIGINT
    • no production environment yet
    • logs out to stdout
    • no admin processes
  • multiple distinct db
  • safe user and resource handling with authorization and authentication (PBKDF2_HMAC)
    • users are able to create, list and delete their databases
  • single threaded, concurrent working, using the build-in asyncio library
  • key expiration can be set (i.e. for expiring sessions)
  • persistence on disk using the pickle library
  • fast sequential save

TODO:

  • tests
  • documentation

Resources

https://12factor.net/ https://docs.python.org/3/library/hashlib.html#hashlib.pbkdf2_hmac https://docs.python.org/3/library/pickle.html https://docs.python.org/3/library/asyncio-stream.html https://docs.python.org/3/library/unittest.html https://redis.io/commands

  • koa & express js patterns

in-memo-db's People

Contributors

kerezsiz42 avatar

Watchers

 avatar

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.