abstract class Movie::Cluster::EntityPartitioner

Overview

Maps a logical entity key to a stable shard number. Implementations must return the same result in every process and across runtime restarts.

Direct Known Subclasses

Defined in:

movie/cluster/sharding/strategies.cr

Instance Method Summary

Instance Method Detail

def configuration_key : String #

[View source]
abstract def shard_for(entity_type : String, entity_id : String, shard_count : Int32) : Int32 #

[View source]