module
Version:
v0.0.0-...-61db174
Opens a new window with list of versions in this module.
Published: Aug 16, 2022
License: Apache-2.0
Opens a new window with license information.
README
¶
go-consistent-hashing
Golang implementation of consistent-hashing.
Links
Start
First install goreman, which manages Procfile-based applications.
- Start proxy server
$ cd cmd/proxy-server
$ go build -o proxy-server
$ goreman start
- 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
¶
cmd
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.