first draft of the ruby api: using a consistency hashing algorithm