{"id":13632664,"url":"https://github.com/async-raft/async-raft","last_synced_at":"2025-05-15T03:06:50.391Z","repository":{"id":44399718,"uuid":"191600925","full_name":"async-raft/async-raft","owner":"async-raft","description":"An implementation of the Raft distributed consensus protocol using the Tokio framework.","archived":false,"fork":false,"pushed_at":"2023-02-12T17:21:47.000Z","size":2023,"stargazers_count":1054,"open_issues_count":20,"forks_count":83,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-04-14T03:07:40.137Z","etag":null,"topics":["async","consensus","raft","rust","tokio"],"latest_commit_sha":null,"homepage":"https://async-raft.github.io/async-raft","language":"Rust","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/async-raft.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-06-12T15:47:29.000Z","updated_at":"2025-04-10T13:22:14.000Z","dependencies_parsed_at":"2023-07-14T09:02:56.107Z","dependency_job_id":null,"html_url":"https://github.com/async-raft/async-raft","commit_stats":null,"previous_names":["railgun-rs/actix-raft"],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/async-raft%2Fasync-raft","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/async-raft%2Fasync-raft/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/async-raft%2Fasync-raft/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/async-raft%2Fasync-raft/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/async-raft","download_url":"https://codeload.github.com/async-raft/async-raft/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254264766,"owners_count":22041793,"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":["async","consensus","raft","rust","tokio"],"created_at":"2024-08-01T22:03:10.346Z","updated_at":"2025-05-15T03:06:45.364Z","avatar_url":"https://github.com/async-raft.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003easync raft\u003c/h1\u003e\n\u003cdiv align=\"center\"\u003e\n    \u003cstrong\u003e\n        An implementation of the \u003ca href=\"https://raft.github.io/\"\u003eRaft distributed consensus protocol\u003c/a\u003e using \u003ca href=\"https://tokio.rs/\"\u003ethe Tokio framework\u003c/a\u003e. Please ⭐ on \u003ca href=\"https://github.com/async-raft/async-raft\"\u003egithub\u003c/a\u003e!\n    \u003c/strong\u003e\n\u003c/div\u003e\n\u003cbr/\u003e\n\u003cdiv align=\"center\"\u003e\n\n[![Build Status](https://github.com/async-raft/async-raft/workflows/ci/badge.svg?branch=master)](https://github.com/async-raft/async-raft/actions)\n[![Discord Chat](https://img.shields.io/discord/845414467234693170?logo=discord\u0026style=flat-square)](https://discord.gg/DYSDaBjwaA)\n[![Crates.io](https://img.shields.io/crates/v/async-raft.svg)](https://crates.io/crates/async-raft)\n[![docs.rs](https://docs.rs/async-raft/badge.svg)](https://docs.rs/async-raft)\n[![License](https://img.shields.io/badge/license-MIT%2FApache--2.0-blue)](LICENSE)\n![Crates.io](https://img.shields.io/crates/d/async-raft.svg)\n![Crates.io](https://img.shields.io/crates/dv/async-raft.svg)\n\n\u003c/div\u003e\n\u003cbr/\u003e\n\nBlazing fast Rust, a modern consensus protocol, and a reliable async runtime — this project intends to provide a consensus backbone for the next generation of distributed data storage systems (SQL, NoSQL, KV, Streaming, Graph ... or maybe something more exotic).\n\n[The guide](https://async-raft.github.io/async-raft) is the best place to get started, followed by [the docs](https://docs.rs/async-raft/latest/async_raft/) for more in-depth details.\n\nThis crate differs from other Raft implementations in that:\n- It is fully reactive and embraces the async ecosystem. It is driven by actual Raft events taking place in the system as opposed to being driven by a `tick` operation. Batching of messages during replication is still used whenever possible for maximum throughput.\n- Storage and network integration is well defined via two traits `RaftStorage` \u0026 `RaftNetwork`. This provides applications maximum flexibility in being able to choose their storage and networking mediums. See the [storage](https://async-raft.github.io/async-raft/storage.html) \u0026 [network](https://async-raft.github.io/async-raft/network.html) chapters of the guide for more details.\n- All interaction with the Raft node is well defined via a single public `Raft` type, which is used to spawn the Raft async task, and to interact with that task. The API for this system is clear and concise. See the [raft](https://async-raft.github.io/async-raft/raft.html) chapter in the guide.\n- Log replication is fully pipelined and batched for optimal performance. Log replication also uses a congestion control mechanism to help keep nodes up-to-date as efficiently as possible.\n- It fully supports dynamic cluster membership changes according to the Raft spec. See the [`dynamic membership`](https://async-raft.github.io/async-raft/dynamic-membership.html) chapter in the guide. With full support for leader stepdown, and non-voter syncing.\n- Details on initial cluster formation, and how to effectively do so from an application's perspective, are discussed in the [cluster formation](https://async-raft.github.io/async-raft/cluster-formation.html) chapter in the guide.\n- Automatic log compaction with snapshots, as well as snapshot streaming from the leader node to follower nodes is fully supported and configurable.\n- The entire code base is [instrumented with tracing](https://docs.rs/tracing/). This can be used for [standard logging](https://docs.rs/tracing/latest/tracing/index.html#log-compatibility), or for [distributed tracing](https://docs.rs/tracing/latest/tracing/index.html#related-crates), and the verbosity can be [statically configured at compile time](https://docs.rs/tracing/latest/tracing/level_filters/index.html) to completely remove all instrumentation below the configured level.\n\nThis implementation strictly adheres to the [Raft spec](https://raft.github.io/raft.pdf) (*pdf warning*), and all data models use the same nomenclature found in the spec for better understandability. This implementation of Raft has integration tests covering all aspects of a Raft cluster's lifecycle including: cluster formation, dynamic membership changes, snapshotting, writing data to a live cluster and more.\n\nIf you are building an application using this Raft implementation, open an issue and let me know! I would love to add your project's name \u0026 logo to a users list in this project.\n\n### contributing\nCheck out the [CONTRIBUTING.md](https://github.com/async-raft/async-raft/blob/master/CONTRIBUTING.md) guide for more details on getting started with contributing to this project.\n\n### license\nasync-raft is licensed under the terms of the MIT License or the Apache License 2.0, at your choosing.\n\n----\n\n**NOTE:** the appearance of the \"section\" symbols `§` throughout this project are references to specific sections of the Raft spec.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasync-raft%2Fasync-raft","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasync-raft%2Fasync-raft","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasync-raft%2Fasync-raft/lists"}