Skip to content

Latest commit

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Introduction

This is a demo for consistent hashing with zookeeper.

Prerequisite

  • java version 8
  • scala version 2.11.7
  • sbt version 0.13.9

Usage

valhashing=ConsistenHashing.create(ZooKeeper(host="127.0.0.1", port=1234))
// post a node to zookeeper with 2 replicas
hashing.post(Node(port =1000, replicas =2)) // list mapping in zookeepervalmapping= hashing.list
// find mapped node valnode= hashing.findBy("smith")

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages