-
Notifications
You must be signed in to change notification settings - Fork 24
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
Final naming tweaks re Tranche/Partition (DynamoStore Index Tranches should be Partitions) #201
Comments
It's a tough one because once you explain the reasoning behind it, I'll agree that With that said, I am still torn about it myself, and to be honest I might even consider stealing |
Lots of useful input regarding this in the Discord. Working on it in #200 but the key decisions are:
|
#203 resolves this
@nordfjord So, going forward the event the code will emit from the next RC onward is now |
It's technically also a tranche 😅.
Given this index format is kind of private maybe it's worth avoiding the breaking change and doing type Event =
| Started of { [<JsonPropertyName "tranche">] partition: AppendsPartitionId } I'm not running a DynamoStore in production though and as such don't have skin in the game. |
Technically yes. Technically the Reader does indeed map partitionId directly to a tranche, but as noted in the docs, there's scope for it to surface multiple tranches from the partition and then use that to enable distributed processing. Seriously though: for future cases where I build systems that split pools, I will call entitle the divisions/shards "partitions" and identify those by Hm, maybe not the craziest idea - it's definitely ugly and cryptic. |
Actually could transparently map by doing a JsonIsomorphism from |
Making tranche optional would be a breaking change. So I’d just make a breaking change at that point |
I am saying that I'd make read of { tranche = t; pos = p} map to { partition = t; pos = p} internally. New writes would write { partitition = r; pos = p}.
|
f93ec00 |
I picked
Tranche
as a relatively obscure term so nobody would bring any preconceptions about what a "partition" might be (or might be limited to being). (Back when it was Cosmos and Kafka only, I originally used the term PartitionId and went to the trouble of doing a rename as the Feed features came into being)But "what is a tranche" seems to be a perpetual question so I may be swung into doing the legwork to rename it (there are probably hundreds of usages of the term spread around the place).
Given Propulsion is about to turn 3.0 (it's rc.2 now), this is the only time it can ever happen.
Recent discussion that prompted this with @jeffijoe https://discord.com/channels/514783899440775168/1002835415239233548/1069633398131413022
and @oskardudycz #200 (comment)
This glossary entry in #200 would go away: https://github.com/jet/propulsion/blob/doc/DOCUMENTATION.md#tranches
The term shard was also suggested
The text was updated successfully, but these errors were encountered: