https://github.com/betty200744/rabbitmq-examples
amqplib rabbitmq best practic
https://github.com/betty200744/rabbitmq-examples
ampq-consumer examples-rabbitmq pratice rabbitmq
Last synced: 7 months ago
JSON representation
amqplib rabbitmq best practic
- Host: GitHub
- URL: https://github.com/betty200744/rabbitmq-examples
- Owner: betty200744
- Created: 2018-11-01T07:05:03.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-02T08:30:54.000Z (almost 7 years ago)
- Last Synced: 2025-01-26T14:54:18.740Z (8 months ago)
- Topics: ampq-consumer, examples-rabbitmq, pratice, rabbitmq
- Language: JavaScript
- Size: 3.91 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## init project
- mkdir rabbitmq-examples
- cd rabbitmq-examples
- npm init
- npm install## require
- brew update
- brew install rabbitmq
- brew services start rabbitmq
- rabbitmq web plugin : http://localhost:15672/ , guest/guest## run
1. git clone
2. yarn install
3. yarn send
4. yarn consumer## start
## rabbitmq-server
- 默认exchanges, AMQP default , 即amq.direct
- 默认routing_key, 即queue的name
- 默认ack required, yes
- 默认durale=true, 会持久化
- 默认prefetch, 1, 即一次处理一个消息
- 默认consumer实例,