嵌入式的消息组件适用于Golang应用程序。

huangapple go评论67阅读模式
英文:

Embeddable messaging component for Golang application

问题

我需要一个可嵌入的 Golang 应用程序的消息组件。我查看了像 NSQ 等分布式消息系统,但更喜欢一个更简单、更稳定、可嵌入的解决方案(无需单独的守护进程)。像 NSQ 这样的系统对我的需求来说过于复杂,而且我认为它不容易嵌入。

我需要这样一个组件来可靠地分发有效载荷/数据(至少传递一次)到我的处理分布式引擎中,可嵌入性将使安装和配置更加容易。

任何信息都将不胜感激。

英文:

I need a embeddable messaging component for Golang application.I looked into distributed messaging system like NSQ etc, but prefer one which is much simpler, stable and embeddable (no separate daemon). Systems like NSQ would be overkill for my requirement and I don't think it is easily embeddable.

I need such a component to distribute the payload/data reliably (delivered once atleast) among my processing distributed engines and embeddable would make installation and configurations easy.

Any information would be appreciated.

答案1

得分: 1

我在生产环境中使用RabbitMQ,使用的是这个库https://github.com/streadway/amqp。虽然这不是官方库,但实现得相当不错。

我使用它来提高物联网的容错性和可扩展性。

优点:

  • 使用简单
  • 有很棒的管理工具
  • 支持多种语言实现
  • 提供多种可用的模式https://www.rabbitmq.com/getstarted.html

缺点:

  • 对于大数据量的负载效率不是很高
  • 可能不是最快的(但对于我的项目来说足够快)
英文:

I use RabbitMQ in production with this library https://github.com/streadway/amqp. This is not an official library but the implementation is quite good.

I use it to improve fault tolerance and scalability for IOT.

Pro:

Cons:

  • Not really efficient for big payloads
  • Probably not the fastest (but fast enough to my projects)

huangapple
  • 本文由 发表于 2015年7月21日 14:59:57
  • 转载请务必保留本文链接:https://go.coder-hub.com/31532305.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定