Kannel 有传入消息队列插件吗?
我有 kannel 使用 sqlbox (postgresql 作为数据库后端)。任何传入消息都将转发到 receive_message 侦听器。然后侦听器将处理消息(查询数据库等)。这是一个非常简单的系统,显然会在高负载下崩溃。
高负载场景的一种解决方案是在系统中间放置一个队列。我一直在阅读有关一些排队系统的内容,例如 RabbitMQ 和 Beanstalk,但我无法想象没有专门为 kannel 创建这样的东西。
那里有这样的事吗?或者分布式排队系统是我最好的选择?如果是,您会建议哪一个?
I have kannel working with sqlbox (postgresql as db backend). Any incoming message will be forwarded to a receive_message listener. The listener will then process the message (query the db, etc). It's a pretty straight forward system, which obviously will break with high load.
One solution for high load scenarios is to put a queue in the middle of the system. I've been reading about a few queuing system, such as RabbitMQ and Beanstalk, but I can't imagine something hasn't been created like this specifically for kannel.
Is there such thing out there? Or distributed queuing system is my best bet? If yes, which one would you suggest?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在之前的演出中使用过 Kannel,并且与主要贡献者进行了交谈。目前,除了数据库之外,没有任何排队机制,但已经有人对此进行了讨论。值得一提的是,我们在生产中使用 Kannel,负载为 200 条消息/秒,没有出现任何问题。我们实现的架构是使用直接的 SMSBox HTTP 协议并使用 ActiveMQ 将这些消息放入队列中。
让我知道是否有帮助!
问候,
马塞洛
I've used Kannel in my previous gig and I spoke with the main contributors. At the moment, there is no queuing mechanism with the exception of a db, but there has been talks about that. It's important to mentioned that we used Kannel in production with a load of 200 msg/sec with no a problems. The architecture that we implemented was using the straight SMSBox HTTP protocol and putting ActiveMQ to get those messages into a queue.
Let me know if that helps!
Regards,
Marcelo