File: asynchronous_publisher_example.rst

package info (click to toggle)
python-pika 1.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,064 kB
  • sloc: python: 20,886; makefile: 136
file content (10 lines) | stat: -rw-r--r-- 536 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
Asynchronous publisher example
==============================

The following example implements a publisher that will respond to RPC commands
sent from RabbitMQ and uses delivery confirmations. It will reconnect if
RabbitMQ closes the connection and will shutdown if RabbitMQ closes the
channel. While it may look intimidating, each method is very short and
represents a individual actions that a publisher can do.

`Asynchronous Publisher Example <https://github.com/pika/pika/blob/master/examples/asynchronous_publisher_example.py>`_