使用 Stomp 和 Apache ActiveMQ 作为可靠的系统日志

发布于 2024-07-09 04:24:44 字数 244 浏览 5 评论 0原文

我的一个程序需要一种可靠的方式来登录不可靠的网络(即互联网)。 发送者或接收者可能随时离线并可以稍后再回来。 但客户发送的任何消息都不应错过。 显然 syslog 不符合要求。 我正在探索使用 Apache ActiveMQ 等消息传递服务器来代替 syslog。 消息发送者使用 perl、ruby 和 c 语言。 所以我用 Stomp 作为消息传输。

这符合我的目的吗? 我在这里缺少任何陷阱吗?

拉吉

One of my programs requires a reliable way to log across unreliable network (ie internet). The sender or receiver may go offline any time and can come back later. But any message sent by client should not be missed. Obviously syslog does not fit the bill. I am exploring the use of messaging servers like Apache ActiveMQ instead of syslog. Message senders are in perl, ruby and c. So I have Stomp as the message transport.

Does this serve my purpose? Is there any pitfall I am missing here?

raj

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

2024-07-16 04:24:44

我觉得一切都很好

That all sounds fine to me

追星践月 2024-07-16 04:24:44

您可能需要查看具有 TCP 模式的 syslog-ng。 这可以实现可靠的交付,但您必须确保正确配置它。

You may want to check out syslog-ng which has a tcp mode. This allows for reliable delivery, but you have to make sure you configure it correctly.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文