bunnyhop:基于amqp构建的可插拔微服务消息传递框架

时间:2021-05-13 18:28:43
【文件属性】:
文件名称:bunnyhop:基于amqp构建的可插拔微服务消息传递框架
文件大小:89KB
文件格式:ZIP
更新时间:2021-05-13 18:28:43
JavaScript 兔子跳 基于amqp构建的可插拔微服务消息传递框架。 这个包允许通过RabbitMQ发送/接收和发布/订阅模式消息。 快速开始 假设我们正在构建2个服务。 流程1 const BunnyHop = require ( 'bunnyhop' ) ; /* Give your service a name. This step is required. Here we are not passing in options so it uses the defaults. Notice there is no new keyword. */ const bus = BunnyHop ( 'user' ) // This goes out to every service subscribed to 'event.user.created'. // If service has multipl
【文件预览】:
bunnyhop-master
----.gitignore(82B)
----README.md(14KB)
----logo.png(3KB)
----.yarnclean(398B)
----package.json(1KB)
----src()
--------index.test.js(2KB)
--------index.js(3KB)
--------example()
--------lib()
----.npmignore(59B)
----yarn.lock(120KB)
----package-lock.json(155KB)

网友评论