Snapshot của eBay/NuRaft: 1.2k★ · C++ · Backend. C++ implementation of Raft core logic as a replication library
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Raft implementation derived from the cornerstone project, which is a very lightweight C++ implementation with minimum dependencies, originally written by Andy Chen.
New features that are not described in the original paper, but required for the real-world use cases in eBay, have been added. We believe those features are useful for others outside eBay as well.
Features
In the original cornerstone
Core Raft algorithm
Log replication & compaction
Leader election
Snapshot
Dynamic membership & configuration change
Group commit & pipelined write
User-defined log store & state machine support
New features added in this project
Pre-vote protocol
Leadership expiration
Priority-based semi-deterministic leader election
Read-only member (learner)
Object-based logical snapshot
Custom/separate quorum size for commit & leader election
If you project needs to integrate with NuRaft and you build your project with Conan you might want
to have NuRaft built with Conan too. This is now supported: this project has conanfile.py which can be used
to build locally and export the package to conan cache/repository or use it in editable mode locally.
Install conan using one of the methods desribed here: https://conan.io/downloads
conan build . - builds Release configuration
conan build . -s build_type=Debug builds an alternative configuration supported by CMake
You can control supported build options via command line as well, ex:
conan build . -o build_tests=True
How to Use
Please refer to this document.
Example Implementation
Please refer to examples.
Benchmark
Please refer to tests/bench.
Quick Benchmark Results
Supported Platforms
Linux, OSX (extensively tested and widely used)
Windows (built with MSVC 2019, limited testing)
Contributing to This Project
We welcome contributions. If you find any bugs, potential flaws and edge cases, improvements, new feature suggestions or discussions, please submit issues or pull requests.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
3rd Party Code
URL: https://github.com/datatechnology/cornerstone
License: https://github.com/datatechnology/cornerstone/blob/master/LICENSE
Originally licensed under the Apache 2.0 license.
URL: https://github.com/stbrumme/crc32
Original Copyright 2011-2016 Stephan Brumme
See Original ZLib License: https://github.com/stbrumme/crc32/blob/master/LICENSE
URL: https://github.com/greensky00/simple_logger
License: https://github.com/greensky00/simple_logger/blob/master/LICENSE
Originally licensed under the MIT license.
URL: https://github.com/greensky00/testsuite
License: https://github.com/greensky00/testsuite/blob/master/LICENSE
Originally licensed under the MIT license.
URL: https://github.com/greensky00/latency-collector
License: https://github.com/greensky00/latency-collector/blob/master/LICENSE
Originally licensed under the MIT license.
URL: https://github.com/eriwen/lcov-to-cobertura-xml/blob/master/lcov_cobertura/lcov_cobertura.py
License: https://github.com/eriwen/lcov-to-cobertura-xml/blob/master/LICENSE
Copyright 2011-2012 Eric Wendelin
Originally licensed under the Apache 2.0 license.
URL: https://github.com/bilke/cmake-modules
License: https://github.com/bilke/cmake-modules/blob/master/LICENSE_1_0.txt
Copyright 2012-2017 Lars Bilke
Originally licensed under the BSD license.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/eBay/NuRaft là nguồn chính thức.
eBay/NuRaft có bao nhiêu sao?
eBay/NuRaft có 1.2k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/eBay/NuRaft. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
eBay/NuRaft có phải mã nguồn mở không?
Có — eBay/NuRaft phát hành theo license Apache-2.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/eBay/NuRaft.
eBay/NuRaft còn đang phát triển không?
Commit gần nhất trên eBay/NuRaft là 3 tháng trước (theo timestamp GitHub). Repo có 299 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
eBay/NuRaft là gì?
eBay/NuRaft (eBay/NuRaft) là dự án C++ trên GitHub. Theo mô tả gốc: C++ implementation of Raft core logic as a replication library
eBay/NuRaft so với các dự án Backend khác thế nào?
eBay/NuRaft được TopGit xếp vào nhóm Backend, với 1.2k sao GitHub và viết bằng C++. Xem trang chủ đề Backend trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về NuRaft?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về NuRaft.