Compze.Teventive.TeventStore
0.12.0-alpha
Prefix Reserved
See the version list below for details.
dotnet add package Compze.Teventive.TeventStore --version 0.12.0-alpha
NuGet\Install-Package Compze.Teventive.TeventStore -Version 0.12.0-alpha
<PackageReference Include="Compze.Teventive.TeventStore" Version="0.12.0-alpha" />
<PackageVersion Include="Compze.Teventive.TeventStore" Version="0.12.0-alpha" />
<PackageReference Include="Compze.Teventive.TeventStore" />
paket add Compze.Teventive.TeventStore --version 0.12.0-alpha
#r "nuget: Compze.Teventive.TeventStore, 0.12.0-alpha"
#:package Compze.Teventive.TeventStore@0.12.0-alpha
#addin nuget:?package=Compze.Teventive.TeventStore&version=0.12.0-alpha&prerelease
#tool nuget:?package=Compze.Teventive.TeventStore&version=0.12.0-alpha&prerelease
Compze.Teventive.TeventStore
The tevent store: event-sourcing persistence for Compze taggregates.
What is Compze?
Compze is a .NET framework for building expressive domains through Teventive programming and Typermedia APIs. Learn more
What's in this package?
This package provides the tevent store that powers Compze's teventive (type-routed event) programming model:
- Tevent persistence —
TeventStorefor storing and retrieving taggregate tevent streams - Taggregate updates — through Compze.Teventive's
ITaggregateStoreUpdater, one for each unit of work, which serves every taggregate store of a container; the store declares the taggregate classes it keeps - Tevent caching —
ITeventCachefor in-memory tevent stream caching - Query model generation — Self-generating query models that automatically stay in sync with tevent streams
- Tevent migration — Support for tevent schema evolution and migration
- Taggregate history validation — Built-in validation of taggregate tevent stream consistency
Teventive programming
Tevents use the .NET type system to declare their meaning:
interface IUserTevent : ITaggregateTeventWithIdentity;
interface IUserRegistered : IUserTevent, ITaggregateCreatedTevent;
interface IUserImported : IUserRegistered;
The tevent store routes and stores these tevents based on type compatibility, enabling expressive domain modeling without manual routing.
A tevent store keeps a taggregate's tevents by their identity, so their root interface declares ITaggregateTeventWithIdentity, and it keeps only the taggregate classes declared for it, where it's composed: TeventStore(connectionName, store => store.Taggregate<User>()). The tevents are published within the process only, unless their root interface also declares a delivery guarantee, such as IExactlyOnceTevent, for other processes to receive them.
Installation
dotnet add package Compze.Teventive.TeventStore
Related packages
| Package | Description |
|---|---|
| Compze.Teventive | The Teventive programming model: taggregates, tevents and tevent dispatching |
| Compze.Tessaging | Messaging infrastructure |
| Compze.Tessaging.Hosting.Testing | Testing support |
License
Apache-2.0
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Compze.Contracts (>= 0.7.2)
- Compze.DependencyInjection (>= 0.13.0-alpha)
- Compze.DocumentDb (>= 0.5.0-alpha)
- Compze.Internals.Logging (>= 0.9.0-alpha)
- Compze.Internals.SystemCE (>= 0.18.0-internal)
- Compze.Tessaging (>= 0.21.0-alpha)
- Compze.Teventive (= 0.12.0-alpha)
- Compze.Teventive.TeventStore.Abstractions (= 0.10.0-alpha)
- Compze.Threading (>= 0.16.0-alpha)
- Compze.TypeIdentifiers.DependencyInjection (>= 0.2.0-alpha)
- Compze.Underscore (>= 0.6.0-beta)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Compze.Teventive.TeventStore:
| Package | Downloads |
|---|---|
|
Compze.Teventive.TeventStore.Typermedia
Typermedia API bridge for the Compze event store — exposes event store operations as Typermedia tueries and tommands. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.13.4-alpha | 0 | 12/5/2026 |
| 0.13.3-alpha | 0 | 12/5/2026 |
| 0.13.2-alpha | 20 | 12/5/2026 |
| 0.13.1-alpha | 86 | 12/4/2026 |
| 0.13.0-alpha | 69 | 12/4/2026 |
| 0.12.1-alpha | 55 | 12/3/2026 |
| 0.12.0-alpha | 69 | 12/3/2026 |
| 0.11.1-alpha | 81 | 12/2/2026 |
| 0.11.0-alpha | 66 | 12/1/2026 |
| 0.10.0-alpha | 69 | 11/29/2026 |
| 0.9.2-alpha | 62 | 11/28/2026 |
| 0.9.1-alpha | 66 | 11/28/2026 |
| 0.9.0-alpha | 75 | 11/27/2026 |
| 0.8.0-alpha | 65 | 11/27/2026 |
| 0.7.0-alpha | 118 | 11/19/2026 |
| 0.6.0-alpha | 81 | 11/14/2026 |
| 0.5.0-alpha | 169 | 7/24/2026 |
| 0.4.0-alpha | 97 | 7/15/2026 |
| 0.3.1-alpha | 101 | 7/6/2026 |
| 0.3.0-alpha | 112 | 7/4/2026 |
- **Breaking: the classes `TeventStore` and `TeventCache` are internal.** Use the interfaces the container resolves them as, `ITeventStore` and `ITeventCache`.
- **Fixed: a unit of work that got a taggregate for update could fail with `InvalidHistoryException` when it changed it,** on every database. Another unit of work's commit, completing late, put the taggregate's older history back in the tevent cache between the read and the change, and the change was appended to that history. What a transaction saves now follows the history it read, whatever the cache gets meanwhile, `ITeventCache.Clear` included. Reads were never affected: each reads from the database the tevents stored after the history the cache holds.
- **Fixed: `ITeventStore.SaveSingleTaggregateTevents` could fail with `InvalidHistoryException` on tevents that continued a taggregate's history, in a transaction that hadn't read the taggregate,** when the tevent cache held none of its history, or an older one, though the tevents were right. Such a save now reads the taggregate's history for update first.
- **Requires newer minor versions of other Compze packages:** Compze.Tessaging 0.21.0-alpha (was 0.19.0-alpha). Upgrading to this version upgrades each package listed here too, so their changelogs apply to this upgrade as well.