Skip to content

Latest commit

 

History

History

pika_tutorial

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

透過 pika 操作 Rabbitmq

rabbitmq 簡易架構圖

alt tag

安裝指令

pip inatsll pika

教學

先把 Rabbitmq 啟動

docker-compose up -d

Hello World! 模式

alt tag

參考 code hello_world

官方文件可參考 https://www.rabbitmq.com/tutorials/tutorial-one-python.html

Work queues 模式

alt tag

參考 code work_queues

官方文件可參考 https://www.rabbitmq.com/tutorials/tutorial-two-python.html

Publish/Subscribe 模式

alt tag

參考 code pub_sub

官方文件可參考 https://www.rabbitmq.com/tutorials/tutorial-three-python.html

Routing 模式

alt tag

參考 code routing

官方文件可參考 https://www.rabbitmq.com/tutorials/tutorial-four-python.html

Topics 模式

alt tag

參考 code topic

官方文件可參考 https://www.rabbitmq.com/tutorials/tutorial-five-python.html

RPC 模式

alt tag

參考 code rpc

官方文件可參考 https://www.rabbitmq.com/tutorials/tutorial-six-python.html

Reference