AioPikaFastProducer
faststream.rabbit.publisher.producer.AioPikaFastProducer #
Bases: ProducerProto
A class for fast producing messages using aio-pika.
Source code in faststream/rabbit/publisher/producer.py
publish async
#
publish(message, exchange=None, *, correlation_id='', routing_key='', mandatory=True, immediate=False, timeout=None, rpc=False, rpc_timeout=30.0, raise_timeout=False, persist=False, reply_to=None, headers=None, content_type=None, content_encoding=None, priority=None, expiration=None, message_id=None, timestamp=None, message_type=None, user_id=None, app_id=None)
Publish a message to a RabbitMQ queue.
Source code in faststream/rabbit/publisher/producer.py
request async
#
request(message, exchange=None, *, correlation_id='', routing_key='', mandatory=True, immediate=False, timeout=None, persist=False, headers=None, content_type=None, content_encoding=None, priority=None, expiration=None, message_id=None, timestamp=None, message_type=None, user_id=None, app_id=None)
Publish a message to a RabbitMQ queue.