Command Sender Port¶
command_sender_port
¶
Outbound port for asynchronously sending commands.
Defines the CommandSenderPort protocol for dispatching commands via
an external message bus. Infrastructure implementations determine
delivery semantics.
Responsibilities
- Abstract command dispatch from transport details.
Non-Responsibilities
- Delivery guarantees (at-least-once, ordering, retries).
- Serialization or transport concerns.
CommandSenderPort
¶
Bases: OutboundPort[Command[CommandPayloadType], None], Protocol
Protocol for dispatching command messages asynchronously.
Any object with an async send method that accepts a Command
satisfies this protocol — no inheritance required.