基于 Node.JS 的 ESB
有人知道用 Node.JS 编写的 ESB 吗?看起来 Node 对此非常有用。可能注意到 IBM DataPower 规模上的一些功能,我现在只需要以下功能:
- 基于内容的路由
- AAA
- 日志记录
- 监控
我可以开始自己编写一个,但我想知道是否有一个现有项目可供构建。
谢谢
Does anybody know of a ESB written in Node.JS. It seems like node would be great for this. Probably note something on the scale of IBM DataPower, I only need the following features for now:
- Content based routing
- AAA
- Logging
- Monitoring
I could start writing one myself, but I was wondering if there might be an existing project to build upon.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
尝试 @node-ts/bus 是一个用 Typescript 为 Node 编写的真正的服务总线。
作为服务总线,它内置了消息处理和工作流/sag。
消息代理可以在无需更改代码的情况下进行交换,目前它支持 SQS 和 RabbitMQ。可以通过实现传输来使用新代理。
在底层,总线负责主题和队列订阅、发布、路由等的所有实现和复杂性。它还利用 @node-ts/logger 允许您使用内置记录器,或者您可以将其替换为您自己的记录器。
最后,服务总线被设计为与 @node-ts/ddd 兼容,这是一个Typescript/Node 的领域驱动设计库。
希望这些足以让您开始
更新:文档已移至https: //node-ts.gitbook.io/bus/,v1 现在无需 inversify 即可工作
Try @node-ts/bus is a true service bus written in Typescript for Node.
As a service bus, it has both message handling and workflows/sags built in.
Message brokers can be swapped in without having to change code, and currently it supports SQS and RabbitMQ. New brokers can be used by implementing a transport.
Under the hood, the bus takes care of all the implementation and complexity of topic and queue subscriptions, publications, routing etc. It also leverages @node-ts/logger that lets you use the in-built logger, or you can swap it out for your own.
Finally the service bus was designed to be compatible with @node-ts/ddd, which is a Domain Driven Design library for Typescript/Node.
Hopefully these are enough to get you started
Update: Docs have moved to https://node-ts.gitbook.io/bus/, and v1 now works without inversify
我没有尝试过,所以我无法评论你想要的具体细节。
我能找到的唯一引用 ESB 的项目是 ESBX on Google 但它没有至少到目前为止,似乎还没有任何进展——你可以尝试联系作者。
另一方面,有许多带有消息队列的 Node 项目,它们可能构成您想要的核心:
当然,基于内容的路由和日志记录是常规的节点系统。 Node.js 中的监控也很简单。
问候,朱利安。
I've not tried any so I can't comment on the specifics you want.
The only project that refers to ESB that I can find is ESBX on Google but it doesn't seem to have got anywhere, at least as yet - you could try contacting the author.
On the other hand, there are a number of Node projects with Message Queues which might form the heart of what you want:
Certainly, the content based routing and logging is routine for Node systems. Monitoring is also trivial in Node.
Regards, Julian.
看看SwarmESB,我还没尝试过,但是看起来很漂亮有趣的。
Take a look at SwarmESB, I haven't tried it yet, but it looks pretty interesting.