{"id":51275,"library":"etcd-raft-v3","title":"etcd Raft v3","description":"Package raft implements the Raft consensus protocol using Protocol Buffer messages.","status":"active","version":"3.5.31","language":"go","source_language":null,"source_url":null,"tags":["raft","consensus","distributed-systems","protocol-buffers"],"install":[{"cmd":"go get go.etcd.io/etcd/raft/v3","lang":"bash","label":"Install go.etcd.io/etcd/raft/v3"}],"dependencies":[],"imports":[{"symbol":"raft","correct":"go.etcd.io/etcd/raft/v3"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"go.etcd.io/etcd/raft/v3\"\n\t\"go.etcd.io/etcd/raft/v3/raftpb\"\n)\n\nfunc main() {\n\t// Example: create a Raft node\n\tstorage := raft.NewMemoryStorage()\n\tc := &raft.Config{\n\t\tID:              1,\n\t\tElectionTick:    10,\n\t\tHeartbeatTick:   1,\n\t\tStorage:         storage,\n\t\tMaxSizePerMsg:   4096,\n\t\tMaxInflightMsgs: 256,\n\t}\n\tnode := raft.StartNode(c, []raftpb.Peer{{ID: 1}})\n\tfmt.Println(\"Raft node started\")\n}","lang":"go","description":"Initialize a Raft node with etcd/raft"},"warnings":[],"env_vars":null,"search_vec":"'buffer':13,22 'consensus':9,16 'distribut':18 'distributed-system':17 'etcd':1 'implement':6 'messag':14 'packag':4 'protocol':10,12,21 'protocol-buff':20 'raft':2,5,8,15 'system':19 'use':11 'v3':3","created_at":"2026-06-15T06:07:14.142045+00:00","updated_at":"2026-06-15T06:07:14.142045+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/etcd-io/etcd","github":null,"docs":"https://pkg.go.dev/go.etcd.io/etcd/raft/v3#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}