Latest
variable default
import { default } from "https://dotland.deno.dev/x/kafkasaur@v0.0.7/src/producer/partitioners/default/partitioner.ts";

The default partitioning strategy:

  • If a partition is specified in the message, use it
  • If no partition is specified but a key is present choose a partition based on a hash of the key
  • If no partition or key is present choose a partition in a round-robin fashion

type

(murmur2: any) => unknown