Crabbit::SuperStreamProducer
Routes publishes across the current partitions of a RabbitMQ super stream.
Partition producers are created lazily and share
SuperStreamProducerOptions#producer. Topology is refreshed on schedule and
after routing failures.
Constructors
Instance methods
Routes and publishes an AMQP message.
routing_key overrides SuperStreamProducerOptions#routing_key_extractor.
A custom routing strategy ignores both values.
publish(message : Message, routing_key : String | Nil = nil, &callback : Confirmation -> ) : SuperStreamPublishHandle
Routes and publishes an AMQP message, invoking the block for each selected partition's confirmation.
Routes and publishes raw, byte, or string payloads using an explicit key.
RawMessage is passed through; Bytes and String are wrapped in an AMQP
Data section by the partition producer.