Closed turowicz closed 9 years ago
I'm not sure I'm following you on this. What do you mean by multi-tenant?
There various ways how you can model multi-tenant apps with Streamstone.
Etag
. Ie, you need to read partition-level aggregation rows (table entities) before including them in transaction when writing events to stream.stream directory
so that you know which tenant has which streams and where. In both cases, concurrency will always be handled for any stream-level operation. In 1-st case, concurrency for partition-level entities could be controlled by developer, using regular semantics of table operations (Insert, InsertOrReplace, Replace).
Checkout Include.XXX
class and sample here for how you can include additional entities when writing events (within same transaction).
@turowicz Can I close this?
thanks!
Will the following example throw concurrency exceptions for multitenant operations too?
https://github.com/yevhen/Streamstone/blob/master/Source/Example/Scenarios/S08_Concurrency_conflicts.cs