代码拉取完成,页面将自动刷新
Here you can find JavaScript (Node) code examples from RabbitMQ tutorials.
To successfully use the examples you will need a running RabbitMQ server.
You need Node.js and amqp.node to run these tutorials.
To install amqp.node
using npm:
npm install amqplib -g
node src/send.js
node src/receive.js
node src/new_task.js "A very hard task which takes two seconds.."
node src/worker.js
Tutorial three: Publish/Subscribe
node src/receive_logs.js
node src/emit_log.js "info: This is the log message"
node src/receive_logs_direct.js info
node src/emit_log_direct.js info "The message"
node src/receive_logs_topic.js "*.rabbit"
node src/emit_log_topic.js red.rabbit Hello
node src/rpc_server.js
node src/rpc_client.js 30
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。