Skip to content

Minimal and in-memory datastore for performant data storage and retrieval.

License

Notifications You must be signed in to change notification settings

amalrajan/pocketdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PocketDB

Minimal and in-memory datastore for performant data storage and retrieval.

Table of Contents

Flow Diagram

Flow Diagram

Installation

  1. Docker

    docker build -t datastore:latest -f Dockerfile .
    docker run -it -d --name datastore -p 8080:8080 datastore:latest
    
  2. Local

    python -m install -r requirements.txt
    

To start client, run python client.py

Usage

  • Client
    SET 1 APPLE
    None
    GET 1
    APPLE
    
  • Server
    [I 230331 23:26:51 main:6] Starting server
    [W 230331 23:26:51 server:62] Listening on 127.0.0.1:65432
    [W 230331 23:27:17 server:17] Accepted connection from 127.0.0.1:38958
    [D 230331 23:28:27 controller:25] Key not found: 'A'
    [D 230331 23:28:32 controller:25] Key not found: 2
    [D 230331 23:29:06 controller:42] Seting 1 -> APPLE
    

License

The MIT License