Code Monkey home page Code Monkey logo

minikeydb's Introduction

MinikeyDB: Distributed Key-Value Store

MinikeyDB is a simple distributed key-value store system designed for educational purposes and experimentation with eventual consistency. It allows users to store and retrieve key-value pairs across multiple nodes in a distributed system.

Features

  • Distributed Architecture: MinikeyDB utilizes a distributed architecture where key-value pairs are stored across multiple nodes.
  • Eventual Consistency: The system employs eventual consistency, ensuring that all updates are eventually propagated to all nodes in the system.
  • Client-Server Model: Clients interact with the key-value store system through simple client scripts.
  • Simple Configuration: Configuration files are provided for easy setup and customization of nodes and clients.

Components

MinikeyDB consists of the following components:

  1. Node: Each node represents a server in the distributed system. Nodes store key-value pairs and communicate with each other to maintain eventual consistency.
  2. Client: Clients interact with the key-value store system by performing operations such as putting, getting, and removing key-value pairs.

Running MinikeyDB

Prerequisites

  • Python 3.x
  • pip (Python package manager)

Setup

  1. Clone the MinikeyDB repository to your local machine:
git clone https://github.com/itz-salemm/minikeyDB.git
  1. Install the required dependencies:
pip install -r requirements.txt

Configuration

  1. Configure the nodes in the nodes_config.py file. Specify the address, port, and node ID for each node in the system.
  2. Configure the clients in the clients_config.py file. Specify the test file path for each client.

Running Nodes

To start the nodes in the distributed system, run the following command:

python driver.py -e

The -e flag specifies eventual consistency mode. You can also use the -v flag for verbose logging.

This command initializes clients and performs operations such as putting, getting, and removing key-value pairs. Adjust the configuration in clients_config.py to specify test files and customize client behavior.

Monitoring

You can monitor the system by observing the console output for nodes and clients. Verbose logging can be enabled for detailed information.

minikeydb's People

Contributors

thectogeneral avatar

Stargazers

 avatar Luis Ciber 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.