{"id":37026689,"url":"https://github.com/ariskk/zio-raft","last_synced_at":"2026-01-14T03:06:40.332Z","repository":{"id":41813258,"uuid":"295003212","full_name":"ariskk/zio-raft","owner":"ariskk","description":"An Implementation of Raft using ZIO in Scala","archived":false,"fork":false,"pushed_at":"2022-04-28T13:30:33.000Z","size":93,"stargazers_count":36,"open_issues_count":1,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-12-06T20:54:33.948Z","etag":null,"topics":["raft","scala","zio"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ariskk.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}},"created_at":"2020-09-12T18:31:09.000Z","updated_at":"2024-03-31T10:02:19.000Z","dependencies_parsed_at":"2022-07-14T20:30:36.872Z","dependency_job_id":null,"html_url":"https://github.com/ariskk/zio-raft","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ariskk/zio-raft","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariskk%2Fzio-raft","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariskk%2Fzio-raft/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariskk%2Fzio-raft/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariskk%2Fzio-raft/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ariskk","download_url":"https://codeload.github.com/ariskk/zio-raft/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariskk%2Fzio-raft/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408800,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["raft","scala","zio"],"created_at":"2026-01-14T03:06:39.508Z","updated_at":"2026-01-14T03:06:40.306Z","avatar_url":"https://github.com/ariskk.png","language":"Scala","funding_links":[],"categories":["分布式开发"],"sub_categories":["微服务框架"],"readme":"# zio-raft\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/ariskk/zio-raft/blob/master/LICENSE)\n![CI](https://github.com/ariskk/zio-raft/workflows/CI/badge.svg)\n\nAn Implementation of Raft using ZIO in Scala.\n\n## Raft\n\nRaft is a popular consensus algorithm. It solves the problem of multiple servers needing to agree on a single value.\nIt is a coordination primitive often used in databases and other distributed systems.\nFor more info, check out the paper https://raft.github.io/\n\nThis is a work in progress implementation in Scala using ZIO for effect management. `Log`, `Storage` and `StateMachine` are pluggable and \nthus different implementations can be provided. The repo currently provides a `Storage` implementation using [RocksDB](https://rocksdb.org/).\n\n[`Raft`](https://github.com/ariskk/zio-raft/blob/master/core/src/main/scala/com.ariskk.raft/Raft.scala) contains the core implementation of the consensus algorithm.\nThe implementation is fully asynchronous. The consensus module is decoupled from the RPC layer and communicates with the outside world using Queues. \n[`RaftServer`](https://github.com/ariskk/zio-raft/blob/master/server/src/main/scala/com.ariskk.raft.server/RaftServer.scala) contains a reference implementation of RPC \nusing a lightweight ZIO wrapper around Java's NIO.\n\nFor examples on how to use the `RaftServer`, please refer to [`RaftServerSpec`](https://github.com/ariskk/zio-raft/blob/master/server/src/test/scala/com.ariskk.raft.server/RaftServerSpec.scala)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fariskk%2Fzio-raft","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fariskk%2Fzio-raft","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fariskk%2Fzio-raft/lists"}