Skip to content

Instantly share code, notes, and snippets.

View connorholt's full-sized avatar

Dmitriy Nikolaev connorholt

  • Costa Rica
View GitHub Profile
@connorholt
connorholt / memberlist-serf-raft.go
Created January 18, 2022 15:31 — forked from mjpitz/memberlist-serf-raft.go
Basic idea on how to use memberlist, serf, and raft all together. Last example I found had a few bugs to work out.
package main
import (
"fmt"
"github.com/hashicorp/memberlist"
"github.com/hashicorp/raft"
"github.com/hashicorp/raft-boltdb"
"github.com/hashicorp/serf/serf"
"io"
"log"