{"id":13629997,"url":"https://github.com/neverchanje/yaraft","last_synced_at":"2025-04-17T13:31:11.345Z","repository":{"id":89716758,"uuid":"78813985","full_name":"neverchanje/yaraft","owner":"neverchanje","description":"Yet Another RAFT implementation","archived":true,"fork":false,"pushed_at":"2018-10-12T08:33:16.000Z","size":301,"stargazers_count":127,"open_issues_count":2,"forks_count":18,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-08-01T22:44:58.895Z","etag":null,"topics":["consensus","cpp","etcd","raft"],"latest_commit_sha":null,"homepage":null,"language":"C++","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/neverchanje.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}},"created_at":"2017-01-13T04:02:45.000Z","updated_at":"2024-01-11T06:38:45.000Z","dependencies_parsed_at":"2023-04-12T15:53:01.264Z","dependency_job_id":null,"html_url":"https://github.com/neverchanje/yaraft","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neverchanje%2Fyaraft","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neverchanje%2Fyaraft/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neverchanje%2Fyaraft/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neverchanje%2Fyaraft/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neverchanje","download_url":"https://codeload.github.com/neverchanje/yaraft/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223757105,"owners_count":17197496,"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","cpp","etcd","raft"],"created_at":"2024-08-01T22:01:26.851Z","updated_at":"2024-11-08T21:30:36.050Z","avatar_url":"https://github.com/neverchanje.png","language":"C++","funding_links":[],"categories":["C++"],"sub_categories":[],"readme":"# yaraft\n[![Build Status](https://travis-ci.org/neverchanje/yaraft.svg)](https://travis-ci.org/neverchanje/yaraft)\n\n## What is yaraft? \n\nyaraft is a C++11 port of [etcd/raft](https://github.com/coreos/etcd/tree/master/raft), which is a widely\nproven [Raft](https://raft.github.io) library written in Go. Raft is a well-known distributed consensus \nalgorithm. It's a practical solution designed for understandability, without sacrificing performance and\nfault-tolerance comparing to Paxos.\n\netcd/raft features at its minimalistic design that only the core Raft protocol is implemented. \nNo RPC, no WAL storage, no multi-threaded environment. It has nothing more than a pure state machine,\nso that we can test it in a deterministic way. For state machines with the same state, the same state machine \ninput should always generate the same state machine output.\n\n## APIs\n\nRead [docs/index.md](docs/index.md) for more details.\n\nThe public interfaces are under include/*.\n\n- **include/conf.h**: The configuration to control over the behavior of raft state machine.\n\n- **include/raw_node.h**: Main interface for controlling over raft state machine.\n\n- **include/memory_storage.h**: A copy of the uncompacted log entries that are kept in memory for efficient retrieval. \n\n- **include/ready.h**: The output of the state machine.\n\n- **src/yaraft/thrift/**: The thrift messages sent and received by yaraft. Read [docs/message_types.md](docs/message_types.md) for more information.\n\n- **include/logger.h**: Logger is the interface for writing log messages. You can customize the\nlogging mechanism by implementing the interface. By default logs are simply written to stderr.\n\n- **include/errors.h**: `error_s` is returned from many of the public interfaces and is used to\nreport success and various kinds of errors.\n\n## Building from source\n\n```bash\nsudo apt-get -y install libboost-dev\nbash install_deps_if_neccessary.sh\ncd build \u0026\u0026 cmake .. \u0026\u0026 make \u0026\u0026 make install\n```\n\n### Running the tests\n\n```bash\n$ BUILD=Debug STANDARD=11 ENABLE_GCOV=false ./run_tests.sh\n```\n\nyou can run [run_gcov.sh](run_gcov.sh) to generate the coverage report.\n\n## Contacts\n\nContact me or submit an issue if you have any questions about the project.\n\n- **Mail**: wutao1@xiaomi.com\n\n## License\n\nyaraft is under the Apache 2.0 license. See the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneverchanje%2Fyaraft","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneverchanje%2Fyaraft","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneverchanje%2Fyaraft/lists"}