LiteBus
Reference

Glossary

This page defines terms used across the LiteBus v6 documentation. Each entry links to the page that explains it in depth.

Core Concepts

TermDefinition
MediatorThe in-process component that routes a message to its handlers. LiteBus exposes typed mediators (ICommandMediator, IQueryMediator, IEventMediator) over a shared IMessageMediator. See Architecture.
CommandA message expressing an intention to change state. Resolves to exactly one main handler. See Command Module.
QueryA message that reads state and returns a result. Resolves to exactly one main handler. See Query Module.
EventA message reporting a fact. Broadcasts to every matching handler, or none. See Event Module.
HandlerA class that processes a message. The single class that does the work is the main handler.

Pipeline

TermDefinition
PipelinePre-handlers, main handler, post-handlers, and error-handlers for one message. See The Handler Pipeline.
Pre-handlerRuns before the main handler.
Post-handlerRuns after the main handler.
Error-handlerRuns when a stage throws.
Execution contextAmbient per-mediation state (AsyncLocal). See Execution Context.

Reliable Messaging Entry Points

LiteBus keeps domain-specific names instead of one generic "store" verb:

TermAPIMeaning
AcceptIInbox.AcceptAsyncStore a command-shaped message for later execution by the inbox processor.
EnqueueIOutbox.EnqueueAsyncStore an event-shaped message for later publication by the outbox processor.
ScheduleMessageVisibility on InboxAcceptMetadata / OutboxEnqueueMetadataAccept or enqueue with a future VisibleAfter timestamp.
TermDefinition
InboxStorage that accepts messages through IInbox.AcceptAsync for later execution. See Inbox.
OutboxStorage that records messages through IOutbox.EnqueueAsync for later publication. See Outbox.
Stable contractPersisted message identity: name + integer version. See Architecture Decisions.
LeaseTemporary row ownership so concurrent workers do not process the same envelope twice.
DispatcherIInboxDispatcher or IOutboxDispatcher; executes or publishes a leased envelope.
ProcessorPipelinedInboxProcessor or PipelinedOutboxProcessor; leases rows and invokes dispatchers.
At-least-onceMessages may be delivered more than once; handlers must be idempotent. See Reliable Messaging.
Dead-letterTerminal state after retry exhaustion.

Registration Vocabulary

TermDefinition
ILiteBusBuilderPackage-neutral Modules entry during AddLiteBus; installed packages add normal Add* feature extensions.
Use* extensionNested registration on InboxModuleBuilder / OutboxModuleBuilder (storage, dispatch, ingress). Each maps to one NuGet package. See Dependency Graph.
ManifestLiteBusHostManifest listing IStartupTask, IBackgroundService, and IDiagnosticCheck types. See Hosted services.
UseInProcessDispatchNested inbox builder extension registering LiteBus.Inbox.Dispatch.InProcess; replays leased envelopes through ICommandMediator. See Inbox.
UseInProcessDispatchNested outbox builder extension registering LiteBus.Outbox.Dispatch.InProcess; publishes leased envelopes through IEventMediator. See Outbox.

PostgreSQL Schema v1 (Greenfield)

TermDefinition
Schema versionPhysical table contract recorded per component. Inbox and outbox are version 3; saga is version 2. Ordered migrations cover older v6 tables, not v5 shapes.
Create scriptGetCreateScript() renders current-version DDL for a new table. See PostgreSQL schema management.
EnsureAsync / ValidateAsyncOpt-in host bootstrap or validate-only startup for PostgreSQL stores.

Delivery Semantics

TermDefinition
At-least-onceProcessors and brokers may deliver the same message more than once. Handlers must be idempotent. See Reliable messaging.
Exactly-once effectApplication responsibility: idempotency keys, deduplication, and handler design; not a broker guarantee.
Idempotency keyInboxAcceptMetadata.Idempotency / OutboxEnqueueMetadata.Idempotency for store-level deduplication on accept/enqueue.

Next

See Migration Guides for historical upgrades, or Migration Guide v6 for greenfield adoption.

On this page