Skip to main content

busly timeout send

Send a timeout message to an endpoint.

Usage

busly timeout send

Options

OptionDescription
-c, --content-typeThe fully qualified .NET type name of the enclosed message (ex: Ordering.Commands.CreateOrder )
-e, --enclosed-message-typeThe type of serialization used for the message
-m, --message-bodyThe content of the message body. Accepts a raw JSON string or a path to a file using curl-style @ syntax (e.g. @payload.json).
-d, --destination-endpointThe destination endpoint to send a message to
--do-not-deliver-beforeAllows specifying a date before which the delivery should not occur, using ISO-8601 format (YYYY-MM-DDTHH:mm:ssZ)
--delay-delivery-withSpecifies the delay before the timeout is delivered, using a TimeSpan format

Transport Support

Not all transports support sending timeouts. Transports that delegate delayed delivery to the broker work fine. Transports that rely on an in-process poller to forward deferred messages are not compatible with the CLI's fire-and-forget execution model — the process exits before the poller has a chance to dispatch the message.

TransportSupportedReason
LearningBroker-side delayed delivery
RabbitMQBroker-side delayed delivery via TTL
Azure Service BusBroker-side scheduled messages
Amazon SQSNative SQS message delay
Azure Storage QueuesRequires an in-process poller; exits before messages become due
PostgreSQLRequires an in-process poller; send-only endpoints not supported
SQL ServerRequires an in-process poller; send-only endpoints not supported

Examples

# Send a timeout with a delay
busly timeout send \
--content-type "text/json" \
--enclosed-message-type "Messages.Timeouts.OrderTimeout" \
--destination-endpoint "Ordering" \
--message-body '{"OrderNumber":"3f2d6c8a-b7a2-4c3f-9c3e-12ab45ef6789"}' \
--delay-delivery-with "00:00:30"
# Send a timeout that doesn't deliver before a specific date/time
busly timeout send \
--content-type "text/json" \
--enclosed-message-type "Messages.Timeouts.OrderTimeout" \
--destination-endpoint "Ordering" \
--message-body '{"OrderNumber":"3f2d6c8a-b7a2-4c3f-9c3e-12ab45ef6789"}' \
--do-not-deliver-before "2026-12-01T09:00:00Z"
# Send a timeout using a JSON file
busly timeout send \
--content-type "text/json" \
--enclosed-message-type "Messages.Timeouts.OrderTimeout" \
--destination-endpoint "Ordering" \
--message-body @payload.json \
--delay-delivery-with "00:00:30"