go-consistent-hashing

module
v0.0.0-...-61db174 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2022 License: Apache-2.0

README

go-consistent-hashing

Golang implementation of consistent-hashing.

Start

First install goreman, which manages Procfile-based applications.

  1. Start proxy server
$ cd cmd/proxy-server
$ go build -o proxy-server
$ goreman start
  1. Start kv-store servers
$ cd cmd/kv-server
$ go build -o kv-server
$ goreman start

Usage

Try to use different keys and observe the proxy server's console log.

$ curl http://127.0.0.1:3333/key?key=${key}
$ curl http://127.0.0.1:3333/key_least?key=${key}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL