Compze.Tessaging
0.23.0-alpha
Prefix Reserved
See the version list below for details.
dotnet add package Compze.Tessaging --version 0.23.0-alpha
NuGet\Install-Package Compze.Tessaging -Version 0.23.0-alpha
<PackageReference Include="Compze.Tessaging" Version="0.23.0-alpha" />
<PackageVersion Include="Compze.Tessaging" Version="0.23.0-alpha" />
<PackageReference Include="Compze.Tessaging" />
paket add Compze.Tessaging --version 0.23.0-alpha
#r "nuget: Compze.Tessaging, 0.23.0-alpha"
#:package Compze.Tessaging@0.23.0-alpha
#addin nuget:?package=Compze.Tessaging&version=0.23.0-alpha&prerelease
#tool nuget:?package=Compze.Tessaging&version=0.23.0-alpha&prerelease
Compze.Tessaging
Messaging infrastructure for the Compze framework.
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 messaging infrastructure that powers Compze's type-routed communication:
- Tommand, tuery, and tevent handling — Type-routed message dispatch for
ITommand,ITuery, andITevent - Message routing — Automatic routing based on .NET type compatibility
- Three composed shapes —
LocalTessagingEngine(...)composes the engine — the synchronous local core everything else rides — into a plain container with no transports at all; aBestEffortEndpointDeclarationbuilds an endpoint giving the engine identity and a wire with nothing persisted anywhere; anExactlyOnceEndpointDeclarationadds the durable vertical (inbox, outbox, durable peer memory, the tommand senders) through which endpoints converse with delivery guarantees.TypermediaClientis the pure client — a navigator and a transport client with no server, for external applications
Type-routed messaging example
registrar
.ForTevent<IUserTevent>(userTevent => Console.WriteLine("User tevent"))
.ForTevent<IUserRegistered>(userRegistered => Console.WriteLine("User registered"));
When an IUserRegistered tevent (which implements IUserTevent) is published, both handlers are called — no manual routing needed.
Installation
dotnet add package Compze.Tessaging
Related packages
| Package | Description |
|---|---|
| Compze.Abstractions | Shared abstractions |
| Compze.Teventive.TeventStore | The tevent store implementation |
| 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.Abstractions (>= 0.8.0-alpha)
- Compze.Contracts (>= 0.7.2)
- Compze.DependencyInjection (= 0.13.0-alpha)
- Compze.Internals.Logging (>= 0.9.0-alpha)
- Compze.Internals.SystemCE (>= 0.18.0-internal)
- Compze.Tessaging.Abstractions (= 0.13.0-alpha)
- Compze.Threading (>= 0.16.0-alpha)
- Compze.TypeIdentifiers (>= 0.6.1-alpha)
- Compze.TypeIdentifiers.DependencyInjection (>= 0.2.0-alpha)
- Compze.Underscore (>= 0.6.0-beta)
- Compze.Unit (>= 0.6.0-beta)
- Microsoft.Extensions.Caching.Memory (>= 9.0.9)
NuGet packages (11)
Showing the top 5 NuGet packages that depend on Compze.Tessaging:
| Package | Downloads |
|---|---|
|
Compze.Tessaging.Hosting.Testing
Hosts test endpoints on a shared root with explicit transport and persistence, private discovery and tracking of tessages in flight. |
|
|
Compze.Hosting
Endpoint hosting for the Compze framework — endpoints, endpoint hosts, and the builder that capabilities such as the Tessaging and Typermedia pipelines plug into. |
|
|
Compze.Tessaging.PostgreSql
For Compze internal use only. Do not take a direct dependency on this package. PostgreSQL inbox/outbox backend for Compze messaging. |
|
|
Compze.Tessaging.Sqlite
For Compze internal use only. Do not take a direct dependency on this package. SQLite inbox/outbox backend for Compze messaging. |
|
|
Compze.Tessaging.MicrosoftSql
For Compze internal use only. Do not take a direct dependency on this package. SQL Server inbox/outbox backend for Compze messaging. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.28.0-alpha | 0 | 12/5/2026 |
| 0.27.5-alpha | 0 | 12/5/2026 |
| 0.27.4-alpha | 0 | 12/5/2026 |
| 0.27.3-alpha | 0 | 12/5/2026 |
| 0.27.2-alpha | 0 | 12/5/2026 |
| 0.27.1-alpha | 9 | 12/5/2026 |
| 0.27.0-alpha | 33 | 12/5/2026 |
| 0.26.2-alpha | 105 | 12/5/2026 |
| 0.26.1-alpha | 66 | 12/5/2026 |
| 0.26.0-alpha | 172 | 12/4/2026 |
| 0.25.2-alpha | 81 | 12/4/2026 |
| 0.25.1-alpha | 89 | 12/4/2026 |
| 0.25.0-alpha | 78 | 12/4/2026 |
| 0.24.0-alpha | 80 | 12/4/2026 |
| 0.23.0-alpha | 114 | 12/3/2026 |
| 0.22.0-alpha | 124 | 12/3/2026 |
| 0.21.2-alpha | 74 | 12/3/2026 |
| 0.21.1-alpha | 142 | 12/3/2026 |
| 0.21.0-alpha | 105 | 12/3/2026 |
| 0.20.2-alpha | 89 | 12/3/2026 |
- **Breaking: a synchronous call runs only handlers registered in their synchronous form.** `Execute` of `ILocalTypermediaNavigatorSession` and `IIndependentLocalTypermediaNavigator`, `Publish` of the tevent publishers, `Send` of the tommand senders for a tommand handled within the send, and `Get` and `Post` of `IRemotableTypermediaNavigator` for a type the endpoint serves itself run the handler on the calling thread. Meeting a handler registered in its asynchronous form, one that returns a `Task`, they now throw an `InvalidOperationException` before any handler runs, naming the tessage and the asynchronous call. Before, they waited for the handler's task, which needed a free thread-pool thread, and stalled while the pool was busy. **To upgrade,** for each call that throws, register the handler in its synchronous form, or make the asynchronous call: `ExecuteAsync`, `PublishAsync`, `SendAsync`, `GetAsync` or `PostAsync`. An asynchronous call runs handlers of either form, as before.
- A taggregate publishes its tevents with `Publish`, so every participation handler of a taggregate's tevents must be registered in its synchronous form.
- A handler declared as a lambda that only throws, such as `(MyTevent _) => throw new InvalidOperationException()`, is registered in the asynchronous form, since C# binds it to the overload taking a `Func` that returns a `Task`. Declare such a handler as a method, and register the method: it then binds to the synchronous form.
- **`Publish` publishes exactly-once tevents,** writing their outbox rows with synchronous commands in the caller's transaction: the same rows, in the same order, as `PublishAsync`. Before, it refused them. A taggregate's exactly-once tevents are published this way, so a synchronous unit of work that adds or changes such a taggregate no longer waits for a free thread-pool thread.
- **`IUnitOfWorkTommandSender.Send` and `IIndependentTommandSender.Send`** send an exactly-once tommand synchronously, by the paths `SendAsync` takes: handled within the send when its handler is in the sending endpoint; admitted to the endpoint's own inbox, in the sender's transaction, when its handler is deferred; and written to the outbox otherwise, waiting for a receiver within the endpoint's handler-availability patience, and failing as `SendAsync` does when the patience runs out.
- **Exactly-once tevent and tommand handlers have a synchronous form:** `IExactlyOnceTeventHandlerRegistrar.ForTevent<TTevent>(Action<TTevent, IUnitOfWorkResolver>, order, transactionTimeout)`, `IExactlyOnceTommandHandlerRegistrar.ForTommand<TTommand>(Action<TTommand, IUnitOfWorkResolver>, order, transactionTimeout)`, and the forms taking up to 15 dependencies.
- **The synchronous best-effort tevent handler takes `order` and `transactionTimeout`,** as the asynchronous one does, and so does the asynchronous form that takes no cancellation token.
- **Breaking for implementers only:** the synchronous registration forms of `ITueryHandlerRegistrar`, `ITypermediaTommandHandlerRegistrar` and `IBestEffortTeventHandlerRegistrar` lost their default bodies, which registered the handler in the asynchronous form. Compze's registrars implement them.
- **Requires exact versions of the Compze packages whose internals it uses:** Compze.Tessaging.Abstractions 0.13.0-alpha (was 0.12.0-alpha). Upgrading to this version upgrades each package listed here to exactly that version, so their changelogs apply to this upgrade as well.