Skip to content

Latest commit

 

History

History
73 lines (48 loc) · 1.87 KB

README.rst

File metadata and controls

73 lines (48 loc) · 1.87 KB

MQ Python HTTP SDK

Aliyun MQ Documents: http://www.aliyun.com/product/ons

Aliyun MQ Console: https://ons.console.aliyun.com

Requires

Python version(=v1.0.0): [2.5, 3.0)

Python version(>v1.0.0): [2.5, ~)

Install sdk by pip

  1. install pip, see document
  2. install sdk by pip
pip install mq_http_sdk

Notice

MQClient, Producer, Consumer are not thread safe, please use multi instance in mutli thread.

Note

  1. Http consumer only support timer msg (less than 3 days), no matter the msg is produced from http or tcp protocol.
  2. Order is only supported at special server cluster.

Samples (github)

Publish Message

Consume Message

Transaction Message

Publish Order Message

Consume Order Message

Samples (code.aliyun.com)

Publish Message

Consume Message

Transaction Message

Publish Order Message

Consume Order Message