rendezvous-proxy

command
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

README

RendezvousHash proxy example

This example shows how to use RendezvousHash loadbalancer for http proxy loadbalancing.

Run example

go run ./main.go

Send requests

The example uses X-Hash-Key header to determine proxy target.

curl -H "X-Hash-Key: foo" http://localhost:8080

Example output:

$ curl -H "X-Hash-Key: foo" http://localhost:8080
target: 2

$ curl -H "X-Hash-Key: bar" http://localhost:8080
target: 3

$ curl -H "X-Hash-Key: baz" http://localhost:8080
target: 2

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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