Giter Club home page Giter Club logo

two-phase-distributed-commit's Introduction

๐ŸŒ Two-Phase Distributed Commit

Overview

The Two-Phase Distributed Commit project is an implementation of the Two-Phase Commit protocol for distributed systems. This protocol ensures atomicity in distributed transactions, providing a reliable and fault-tolerant solution for coordinating transactions across multiple nodes.

Features

  • Two-Phase Commit Protocol: Implements the classic Two-Phase Commit protocol to ensure consistent and atomic distributed transactions.

  • Fault Tolerance: Robust handling of failures and recoverability to maintain system integrity even in the presence of node failures.

  • Scalability: Can be added more nodes easily to replicate a scenario with a lot of nodes

Getting Started

  • Need JRE to run the project
# Example commands to get started
git clone https://github.com/dj1095/two-phase-distributed-commit.git
cd two-phase-distributed-commit

Handled Scenarios

Node Failure

  • In the event of a node failure during the transaction, the Two-Phase Distributed Commit project gracefully handles the situation:

  • If a participant node fails during the prepare phase, the coordinator detects the failure and aborts the transaction.

  • If a participant node fails during the commit phase, the coordinator detects the failure and initiates a rollback to maintain consistency.

Transaction Coordinator Failure

  • In the rare scenario where the transaction coordinator fails:

  • The system is designed to recover from coordinator failures and resume normal operation.

  • Participants receive a notification of the failure and take appropriate measures, such as rolling back the transaction.

two-phase-distributed-commit's People

Contributors

dj1095 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.