-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for configuring partition key extraction rules #69
Comments
Additionally, a physical mapping function could also be added, ideas
|
A bit of context We actually had helper methods like this at one point but we decided to not add them out of the box and first get a better understanding of what customers do with the flexibility the persister provides before we go down the path of building convenience APIs |
We started a PR for this and will release it as a new minor shortly. |
@Ivan-L We have released 1.1.0. For more details about the release see https://discuss.particular.net/t/nservicebus-persistence-cosmosdb-1-1-0-minor-release-available/2908 as well as our upgrade guide https://docs.particular.net/persistence/upgrades/cosmosdb-1to1.1 We have also added comprehensive documentation about the new more convenient transaction API that we introduced in this release https://docs.particular.net/persistence/cosmosdb/transactions |
Hi @danielmarbach this is really great, thank you! We have a few projects that we can migrate to use this fluent API. |
@Ivan-L cool! Let us know if you discover loopholes or inconvenient stuff, in case you find any so that we can further improve things in next enhancement releases. |
Raised by @Ivan-L
We found that teams who used our persistence package had a difficult time wrapping their heads around the fact that one needs to look inside a message in order to determine the partition to which a Cosmos session needs to be scoped. We thought of but never got around to it, to implement a fluent API for configuring message partition key extraction rules to make that configuration easier and clearer to reason about. For example, we considered the following:
The text was updated successfully, but these errors were encountered: