在上篇文章中,我们介绍了消费端的确认,那么在生产者有没有确认机制呢?答案是有的。 参考我们发送消息的代码段:
channel.basic_publish(exchange='testexchange', routing_key='hello', body='Hello World!{}'.format(i),
mandatory=True,
properties=pika.BasicProperties(
delivery_...