LiteBus

LiteBus Documentation

This directory contains the authoritative LiteBus documentation. Pages are versioned with the source, reviewed with API changes, and validated by the repository build. The former GitHub wiki is not a documentation source for v6.

LiteBus v6 targets .NET 10 and remains unreleased. A page that describes a v6 API defines the current branch contract, not a compatibility promise for an earlier package version.

The Fumadocs pages under site/content/docs mirror this tree. The documentation site content gate compares every page byte-for-byte and rejects missing, stale, or orphaned copies. The root v7 roadmap is mirrored under the site's roadmap section by the same gate.

Directory Layout

DirectoryContent
getting-started/Installation, first application, working conventions, and recipes
concepts/Mediator contracts, handlers, execution context, and dispatch behavior
architecture/Layering, package dependencies, API rules, decisions, and hosting model
reliable-messaging/Inbox, outbox, saga, transaction, and delivery semantics
integrations/Broker, ingress, dispatch, storage, and schema adapter guides
operations/Diagnostics, security, performance, runbook, and troubleshooting guidance
testing/Application testing, repository test suites, and integration categories
reference/Capability inventory, analyzer rules, feature index, and glossary
extending/Custom modules, stores, dispatchers, and framework adapters
migration/Version upgrades and MediatR migration guidance
roadmap/Deferred work and accepted v6 limits
contributing/Repository contribution workflow
catalog/Contract-level capability pages grouped by LiteBus subsystem

Start Here

GoalPage
Install LiteBus and run the first handlerGetting Started
Run a compile-checked applicationLiteBus Sample
Select packages without widening dependenciesDependency Graph
Review the full v6 feature inventoryv6 Feature Index
Find a contract, builder method, or adapter by capabilityCapability Catalog
Understand generated inventories and executable documentation checksDocumentation Semantic Validation
Upgrade an application to v6Migration Guide v6
Diagnose a configuration or runtime failureTroubleshooting

Architecture and API Design

  • Architecture defines dependency roles, module registration, manifests, durable processing, and telemetry boundaries.
  • Dependency Graph lists package roles and direct references.
  • API Design defines semantic input types, metadata variants, method shapes, and naming rules.
  • Architecture Decisions records decisions that constrain future work.
  • Extensibility covers custom modules, stores, dispatchers, and host adapters.

Mediator

AreaPrimary GuideDetailed Catalog
CommandsCommand ModuleCommand Catalog
Queries and streamingQuery ModuleQuery Catalog
Events and concurrencyEvent ModuleEvent Catalog
Handler stagesHandler PipelinePipeline Catalog
Runtime selectionHandler FilteringFiltering Catalog
Type resolutionPolymorphic DispatchResolution Catalog
Open generic handlersOpen Generic HandlersOpen Generic Catalog

Inbox and Outbox

Read Reliable Messaging Semantics before selecting a durable topology.

AreaGuideDetailed Catalog
Inbox acceptance and executionInboxInbox Acceptance and Inbox Processor
Outbox enqueue and publicationOutboxOutbox Enqueue and Outbox Processor
Atomic application writesTransactional Messaging WritesTransactional Writes Catalog
Retry, lease, and dead-letter behaviorReliable MessagingLease, Retry, and Dead Letter
OperationsOperations and ManagementOperations Catalog

Storage

AdapterInboxOutboxShared Infrastructure
PostgreSQLLiteBus.Inbox.Storage.PostgreSqlLiteBus.Outbox.Storage.PostgreSqlPostgreSQL Schema Management
Entity Framework CoreInbox EF Core StorageOutbox EF Core StorageEF Core Storage Catalog
In-memoryLiteBus.Inbox.Storage.InMemoryLiteBus.Outbox.Storage.InMemoryTest and local behavior use only

The Storage Catalog maps store roles to each adapter implementation.

Transport, Dispatch, and Ingress

Transport publishes and consumes wire envelopes. Dispatch maps a leased inbox or outbox envelope to a transport. Ingress maps a consumed transport envelope into inbox acceptance.

BrokerTransportDispatchIngressv6 Classification
AMQPAMQP TransportInbox and outboxAMQP IngressRelease target
KafkaKafka TransportInbox and outboxKafka ingressIngress remains prerelease pending broader failure testing
AWS SQSAWS SQS TransportInbox and outboxAWS SQS ingressPrerelease pending live-service certification
Azure Service BusAzure Service Bus TransportInbox and outboxAzure Service Bus ingressPrerelease pending live-service certification
In-memoryTransport test implementationInbox and outboxIn-memory ingressTesting support

The Transport, Dispatch, and Ingress catalogs document wire mapping, acknowledgement, retry, and registration behavior.

Hosting, Diagnostics, and Telemetry

  • Hosted Services defines startup tasks, background services, diagnostic checks, and host manifests.
  • Diagnostics and Health defines framework-neutral checks and ASP.NET Core health integration.
  • Production Runbook covers startup, shutdown, failed-message operations, and schema ownership.
  • Security and Tenancy covers tenant isolation and payload protection boundaries.
  • Hosting Catalog lists Microsoft DI, Autofac, ASP.NET Core, health, and OpenTelemetry adapters.

Saga Extension

Saga documents correlated inbox state, optimistic concurrency, tenant scoping, and store selection. The feature is an inbox extension, not a general workflow engine. The Saga Catalog lists each contract and integration point.

Testing and Operations

Reference

Documentation Checks

Run the same repository check used by CI:

pwsh ./scripts/Test-Documentation.ps1

The check rejects broken relative links, links that escape the repository, wiki references, trailing whitespace, banned Unicode typography, and phrases prohibited by the repository writing rules.

On this page