{"id":15365909,"url":"https://github.com/ivanprodaiko94/raft-protocol-implementation-client","last_synced_at":"2025-04-09T19:54:52.347Z","repository":{"id":111714153,"uuid":"187199089","full_name":"IvanProdaiko94/raft-protocol-implementation-client","owner":"IvanProdaiko94","description":"http client for raft","archived":false,"fork":false,"pushed_at":"2019-06-11T08:07:44.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T19:54:47.605Z","etag":null,"topics":["consensus","consensus-algorithm","distributed","distributed-systems","raft","raft-consensus","raft-protocol","ucu"],"latest_commit_sha":null,"homepage":"https://github.com/IvanProdaiko94/raft-protocol-implementation","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IvanProdaiko94.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2019-05-17T10:44:28.000Z","updated_at":"2019-07-10T21:12:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"f693b4b7-a71e-4b14-9c50-4c8edb0da508","html_url":"https://github.com/IvanProdaiko94/raft-protocol-implementation-client","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"2763cbbbdaa97a67c5dcc62266f772b1f6a2d5ff"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanProdaiko94%2Fraft-protocol-implementation-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanProdaiko94%2Fraft-protocol-implementation-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanProdaiko94%2Fraft-protocol-implementation-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanProdaiko94%2Fraft-protocol-implementation-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IvanProdaiko94","download_url":"https://codeload.github.com/IvanProdaiko94/raft-protocol-implementation-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103911,"owners_count":21048245,"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":["consensus","consensus-algorithm","distributed","distributed-systems","raft","raft-consensus","raft-protocol","ucu"],"created_at":"2024-10-01T13:16:39.101Z","updated_at":"2025-04-09T19:54:52.324Z","avatar_url":"https://github.com/IvanProdaiko94.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# raft-protocol-implementation\nRaft protocol implementation as part of \"Distributed databases\" course in UCU\n\n## Raft decomposes the consensus problem into three relatively independent subproblems:\n- **Leader election**: a new leader must be chosen when an existing leader fails.\n- **Log replication**: the leader must accept log entries\n- **Safety**: the key safety property for Raft is the State Machine Safety Property. If any server has applied a particular \nlog entry to its state machine, then no other server may apply a different command for the same log index. The solution involves an\nadditional restriction on the election mechanism.\n\n##  Raft guarantees that each of these properties is true at all times.\n- **Election Safety**: at most one leader can be elected in a given term.\n- **Leader Append-Only**: a leader never overwrites or deletes entries in its log; it only appends new entries.\n- **Log Matching**: if two logs contain an entry with the same index and term, then the logs are identical in all entries\nup through the given index.\n- **Leader Completeness**: if a log entry is committed in a given term, then that entry will be present in the logs\nof the leaders for all higher-numbered terms.\n- **State Machine Safety**: if a server has applied a log entry at a given index to its state machine, no other server\nwill ever apply a different log entry for the same index.\n\n## Curl \n\n```bash\ncurl -L -d '{\"action\":\"Create\", \"data\":{\"x\": \"123\"}}' -H \"Content-Type: application/json\" -X POST http://localhost:8080/append\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanprodaiko94%2Fraft-protocol-implementation-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivanprodaiko94%2Fraft-protocol-implementation-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanprodaiko94%2Fraft-protocol-implementation-client/lists"}