Giter Site home page Giter Site logo

global-snapshot's Introduction

Global-Snapshot

Introduction

Distributed Snapshot uses Chandy-Lamport snapshot algorithm and applied into a simple banking application. Application is build on top of Java RMI, which is an object-oriented equivalent of remote procedure calls (RPC).

Bank branches are treated as nodes, which form a strongly connected graph (single connected component). Each node has an initial balances and start exchanging random amount of money (within predefined boundaries) at fixed time rate as soon as they are connected. Any node can initiate snapshot and log it into *.csv file.

Distributed Snapshot effectively selects a consistent cut (no messages jump from future into the past and no message receipt is recorded without send) and is a non-blocking algorithm. Snapshot reflects the global state in which the distributed system might have been.

####Features - nodes can be run on separate hosts - nodes can join but cannot leave (for simplicity of the cut) - nodes can initiate and log the distributed snapshot - multiple snapshots can be taken at a same time (distinguished by snapshot ID)

####Assumptions - system is peer-to-peer: any bank can connect to any other - bank makes new transfer immediately after the previous one - nodes knows one existing node (id and host) in the graph in order to join - at most one snapshot is taken at a time

Installation

Requirements: JDK 8, Maven

Configure service parameters in service.properties file.

####Run inside of IDE - mvn clean install - run main ServerLauncher.java

####Run as executable JAR - mvn clean install - execute following line in new window to start the node (bank): - java -jar GlobalSnapshot-${version}-jar-with-dependencies.jar

Documentation

Project Description (PDF)

Authors

Victor Ekimov

global-snapshot's People

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

renyu310

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.