Git Product home page Git Product logo

distributed-transactions's Introduction

Distributed-Transactions

Make : make
Start deadlock detector : python3 deadlock.py 9999
Start 5 servers : python3 run.py
Run client : ./client num(0-9)

Example

./client 0
./client 1

Features

Atomic, Consistency, Isolation with deadlock detection

Client Interface

At start up, the client should automatically connect to all the necessary servers and start accepting commands typed in by the user. The user will execute the following commands:

BEGIN: Open a new transaction, and reply with โ€œOKโ€.
SET server.key value:
Set the value of an object with the named key stored on the named server. E.g.:
SET A.x 1
SET B.y 2

GET server.key: Get the value of the object named by the key on the named server.
Reply with: server.key = value on a separate line. E.g.:
GET A.x
A.x = 1

If a query is made to an object that has not previously been SET, you should return NOT FOUND and abort the transaction.

COMMIT:

Commit the transaction, making its results visible to other transactions.
The client should reply either with COMMIT OK or ABORTED, in the case that the transaction had to be aborted during the commit process.

ABORT:

Abort the transaction. All updates made during the transaction must be rolled back. The client should reply with ABORTED to confirm that the transaction was aborted.

distributed-transactions's People

Contributors

sudhakarshah avatar irrationalkyo avatar

Watchers

James Cloos 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.