cluster

module
v0.0.0-...-4919d5a Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: MIT

README

cluster

Status GoDoc codecov Go Report Card

Librarie for building distributed services

Partition

The partition package supports self-sharding: where a cluster of servers accept any request but then hash the request and route it to one of the servers in the request based on the hash.

This combines the "gateway which shards the request to servers" with the "servers which serve a shard" into one single cluster.

Note that this sharding is not perfect but it is quite useful when sharding improves performance (by caching requests) or allows serial execution (to avoid redoing some work). This is not useful when sharding is needed for correctness (that requires some form of distributed locking).

Directories

Path Synopsis
pkg
partition
Package partition provides utilities to partition requests to a cluster.
Package partition provides utilities to partition requests to a cluster.
partition/internal/rpc
Package rpc implements partition.Network using rpc
Package rpc implements partition.Network using rpc
partition/runner
Package runner implements a multiplexer on top of the partition package.
Package runner implements a multiplexer on top of the partition package.

Jump to

Keyboard shortcuts

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