英文:
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:
- Easy to use
- Great administration tools
- Many languages implementations
- Many patterns availables https://www.rabbitmq.com/getstarted.html
Cons:
- Not really efficient for big payloads
- Probably not the fastest (but fast enough to my projects)
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论