Coder Social home page Coder Social logo

arnobpl / dynamo-style-distributed-key-value-storage Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 122 KB

Amazon Dynamo-style distributed key-value storage with partitioning, replication, and failure handling

License: MIT License

Java 97.87% Python 1.59% Shell 0.54%
distributed-systems hashtable dht amazon-dynamo replication concurrency consistency linearizability failure failure-detection

dynamo-style-distributed-key-value-storage's Introduction

Dynamo-Style Distributed Key-Value Storage

This is a distributed key-value storage with partitioning, replication, and failure handling. It is a simple version of Amazon Dynamo. The main goal of the distributed key-value storage system is to provide both availability and linearizability at the same time. In other words, the implementation should always perform read and write operations successfully even under failures (i.e., availability). At the same time, a read operation should always return the most recent value (i.e., linearizability).

Features

  1. Operations: It supports insert, delete, and query operations with any key. For the query operation, it also supports to return all the key-value pairs from the whole system (i.e., all the nodes). Moreover, it supports to return all the key-value pairs (including the replicated pairs) from the handling node.

  2. Partitioning: There are always five nodes in the system. Currently, it does not support adding/removing nodes to/from the system.

  3. Routing: Unlike the Chord distributed hash table, each node in the system knows every other node. Each node also knows exactly which partition belongs to which node.

  4. Consistency: It guarantees the consistency of per-key linearizability. In other words, a read operation on a specific key should always return the most recent value of that key regardless of the requested node that handles the read operation.

  5. Concurrency: It supports concurrent read/write operations.

  6. Availability: It can handle a failure happening at the same time with read/write operations. That means, if one node fails, other nodes can still serve read/write requests correctly (i.e., per-key linearizability).

  7. Failure handling: There can be at most one node failure at any given time. All failures are temporary. That means the failed node will not be permanently unavailable during a run.

  8. Failure recovery: When a node recovers after failure, it can copy all the object writes it missed during the failure.

  9. Replication: Replication is done exactly the same way as Dynamo does. In other words, a key-value pair is replicated over three consecutive partitions, starting from the partition that the key belongs to. Replication is implemented using the Chain replication strategy.

Acknowledgement

This project was done as a part of CSE 586 Distributed Systems course instructed by Professor Dr. Steve Ko, Department of Computer Science and Engineering, University at Buffalo.

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.