Alpha Version: You are viewing the ALPHA documentation. This is an experimental version and may contain breaking changes.
Skip to main content

CommandTopic — Local

Source: reventless-local/src/adapter/CommandTopic/LocalCommandTopicChannel.res

AWS equivalent: CommandTopic → SQS FIFO

How It Works

Commands are dispatched directly via the shared LocalBus. There is no queue — publishJsons encodes each command as {id, meta, command} and calls Bus.dispatchCommand, which looks up the registered handler and invokes it synchronously.

The connect function registers the aggregate's command handler on the bus using the channel name as the key.

Operations

OperationDescription
publishJsonsEncodes commands and dispatches via Bus.dispatchCommand
publishJsonsStreamStream variant — groups items into batches of 10
handleChannelEventWraps the command handler for the runtime
connectRegisters the handler on the bus for this channel name

Key Differences from AWS

AspectLocalAWS
TransportDirect function call via busSQS FIFO queue
OrderingGuaranteed (single-threaded)Per-message-group FIFO ordering
DeduplicationNone neededContent-based deduplication
Dead letter queueNoneConfigurable DLQ
Visibility timeoutN/A180 seconds