{"id":19027378,"url":"https://github.com/dj1095/two-phase-distributed-commit","last_synced_at":"2026-05-01T16:30:20.147Z","repository":{"id":178822742,"uuid":"554580642","full_name":"dj1095/two-phase-distributed-commit","owner":"dj1095","description":"An implementation of the Two-Phase Commit protocol for distributed systems, ensuring atomicity in transactions. Robust, fault-tolerant, and scalable.","archived":false,"fork":false,"pushed_at":"2024-02-29T14:58:35.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-02T03:14:40.558Z","etag":null,"topics":["atomicity","client-server","distributed-systems","fault-tolerance","java8","multithreading","rpc-framework","scalability","two-phase-commit"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dj1095.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-10-20T03:26:37.000Z","updated_at":"2024-02-29T14:58:15.000Z","dependencies_parsed_at":"2024-02-15T03:26:24.750Z","dependency_job_id":"afcdbc59-21e4-4558-9702-3d903437992d","html_url":"https://github.com/dj1095/two-phase-distributed-commit","commit_stats":null,"previous_names":["dj1095/two-phase-distributed-commit"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dj1095%2Ftwo-phase-distributed-commit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dj1095%2Ftwo-phase-distributed-commit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dj1095%2Ftwo-phase-distributed-commit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dj1095%2Ftwo-phase-distributed-commit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dj1095","download_url":"https://codeload.github.com/dj1095/two-phase-distributed-commit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240079312,"owners_count":19744717,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["atomicity","client-server","distributed-systems","fault-tolerance","java8","multithreading","rpc-framework","scalability","two-phase-commit"],"created_at":"2024-11-08T21:08:05.629Z","updated_at":"2026-05-01T16:30:20.058Z","avatar_url":"https://github.com/dj1095.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌐 Two-Phase Distributed Commit\n\n## Overview\n\nThe 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.\n\n## Features\n\n- **Two-Phase Commit Protocol:** Implements the classic Two-Phase Commit protocol to ensure consistent and atomic distributed transactions.\n\n- **Fault Tolerance:** Robust handling of failures and recoverability to maintain system integrity even in the presence of node failures.\n\n- **Scalability:** Can be added more nodes easily to replicate a scenario with a lot of nodes\n\n## Getting Started\n- Need JRE to run the project\n\n```bash\n# Example commands to get started\ngit clone https://github.com/dj1095/two-phase-distributed-commit.git\ncd two-phase-distributed-commit\n```\n## Handled Scenarios\n### Node Failure\n- In the event of a node failure during the transaction, the Two-Phase Distributed Commit project gracefully handles the situation:\n\n- If a participant node fails during the prepare phase, the coordinator detects the failure and aborts the transaction.\n\n- If a participant node fails during the commit phase, the coordinator detects the failure and initiates a rollback to maintain consistency.\n\n### Transaction Coordinator Failure\n- In the rare scenario where the transaction coordinator fails:\n\n- The system is designed to recover from coordinator failures and resume normal operation.\n\n- Participants receive a notification of the failure and take appropriate measures, such as rolling back the transaction.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdj1095%2Ftwo-phase-distributed-commit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdj1095%2Ftwo-phase-distributed-commit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdj1095%2Ftwo-phase-distributed-commit/lists"}