Compze.Tessaging
0.21.0-alpha
Prefix Reserved
See the version list below for details.
dotnet add package Compze.Tessaging --version 0.21.0-alpha
NuGet\Install-Package Compze.Tessaging -Version 0.21.0-alpha
<PackageReference Include="Compze.Tessaging" Version="0.21.0-alpha" />
<PackageVersion Include="Compze.Tessaging" Version="0.21.0-alpha" />
<PackageReference Include="Compze.Tessaging" />
paket add Compze.Tessaging --version 0.21.0-alpha
#r "nuget: Compze.Tessaging, 0.21.0-alpha"
#:package Compze.Tessaging@0.21.0-alpha
#addin nuget:?package=Compze.Tessaging&version=0.21.0-alpha&prerelease
#tool nuget:?package=Compze.Tessaging&version=0.21.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.12.0-alpha)
- Compze.Threading (>= 0.16.0-alpha)
- Compze.TypeIdentifiers (>= 0.5.0-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.Sqlite
Discontinued: this is its last version. Compze no longer supports SQLite: it runs one writer at a time, so it could never be a fully supported persistence layer. Use Compze.Tessaging.MicrosoftSql for SQL Server, Compze.Tessaging.PostgreSql for PostgreSQL or Compze.Tessaging.MySql for MySQL. For Compze internal use only. Do not take a direct dependency on this package. SQLite inbox/outbox backend for Compze messaging. |
|
|
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.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 |
- **A TCP transport: `TcpEndpointTransport(listenOn)`** (`Compze.Tessaging.Transport.Tcp`), declared where an endpoint would declare `NamedPipeEndpointTransport()`. It reaches endpoints on other machines and needs no web stack, only the base runtime.
- The endpoint listens on the one IP address the declaration names, at a port the operating system picks each time it starts, and that address and port are the address it has and announces. An address that stands for every network interface, such as `IPAddress.Any`, is refused when the endpoint is built: nothing could connect to the address the endpoint would announce.
- **It authenticates nobody and encrypts nothing.** Whatever can connect to the address can converse with the endpoint, and whatever sits between two endpoints can read what they say. Listen only on networks where that is acceptable.
- It speaks the named-pipe transport's wire, and shares everything with that transport but how a connection is listened for and opened: many calls on one connection, the deadline and cancellation of a remote call, and the same outcomes.
- A call to an address where nothing listens, or where nothing answers a connect within five seconds, throws `TessageNotExecutedException`: nothing was sent.
- A connection whose peer disappeared without closing it, such as a machine that was turned off, is ended by TCP keepalive after about ten seconds of silence. A call that was sent on it and not yet answered then throws `TessageOutcomeUnknownException`.
- Tried between two machines, a Hyper-V host and its guest, whose only .NET is the base runtime. With the guest paused, the tuery that was on the connection failed after about ten seconds, and the next ones after five. Once the guest was back, the endpoint accepted the client's new connection 10 milliseconds after it was introduced, while it still held the one from before the pause.
- Discovery across machines is not part of this package: `InterprocessEndpointRegistry` serves one machine. Compze.Hosting has a registry that reaches across machines, `NetworkEndpointRegistry` with its `EndpointRegistryServer`.
- **Breaking:** named pipes, TCP and HTTP use version 3 of the transport protocol. Upgrade the endpoints and clients together: a peer of version 2 is refused.
- **A call's deadline travels as the time that remains until it, not as an instant.** The endpoint that receives a call counts that time from when the call arrives, by its own clock, so the clocks of two machines need not agree. Before, an endpoint whose clock was ahead of its caller's by more than a call's budget refused the call as expired before it ran.
- `RemoteCallDeadline.Instant` is an instant on the clock of the machine that holds the deadline. The one a handler sees is its own machine's: later than the caller's by the time the call was on its way, which the receiving endpoint does not count, and never earlier.
- **A client numbers the connections it opens, and an endpoint serves the newest.** A connection that replaces one the endpoint still holds is served at once. Before, it waited until the endpoint itself had found the old one gone: about ten seconds over TCP, when the endpoint's machine came back from a pause or a network cut during which the client had given the connection up.
- **A pure client can declare the TCP transport:** `TcpEndpointTransportClient()`, for `TypermediaClientBuilder.ConfigureTransport`.
- An endpoint that declares no transport protocol is told of the three declarations there are, `TcpEndpointTransport(listenOn)` among them.