fabriziosestito / commanded-spear-adapter

Spear event store adapter for Commanded
MIT License
19 stars 5 forks source link

Partition by #3

Closed fabriziosestito closed 2 years ago

fabriziosestito commented 2 years ago

This PR introduces the support for the partition_by option introduced in Commanded 1.4

When a partition function is passed, multiple subscriptions with max_subscriber_count = 1 and the index as a suffix are created. When an event is received, the partition function is applied and phash2 is used to determine if the subscriber is interested in the event.