我可以将 LAMP+AJAX 用于(几乎)实时系统吗?

发布于 2024-07-09 12:27:49 字数 438 浏览 9 评论 0原文

我当前的系统是作为 Windows 应用程序构建的,并且非常接近实时地执行某些任务。 网络中的节点与我们的自定义服务器进行通信、通信状态以及发送和接收命令。

我们正在寻求转向网络部署平台。 节点,比如60-100个,需要与服务器通信,并快速显示给客户端。 我说的是毫秒,而不是秒。 网络连接为 LAN/100mbit 或千兆位,具有从客户端到服务器的可靠快速连接。 节点通信也很小,并且已经以 XML 消息的形式发送,消息的大小并不大,数量也不是很大。

我们的系统架构师充满信心,并向我们保证,这可以通过 LAMP + AJAX 来完成。 我个人以前曾参与过类似的系统,并且我对保证如此接近实时的消息传递持怀疑态度。

为了进行健全性检查,我错了吗? 这可以用 LAMP 或任何类似的语言(很好)完成吗? (不是 Java,我知道启动的 Java 小程序可以做到这一点)。

I have a current system which is build as a Windows Application, and does certain tasks in very close to real time. There are nodes in a network that communicate with our custom server, communicating status, and sending and receiving commands.

We are looking to move to a web deployed platform. The nodes, say 60-100 of them, need to communicate with the server, and display to the client quickly. I'm talking milliseconds, not seconds. The network connection is LAN/100mbit or gigabit, with a reliably fast connection from the clients to the server. The node communication is also small, and it already sent as XML messages, which are not huge in size, and not overwhelming in quantity.

Our System Architect is confident, and assures us, that this can be done with LAMP + AJAX. I personally have been involved with similar systems before, and I'm skeptical about the guarantee delivery of messages this close to real time.

In order to have a sanity check, am I wrong? Can this be done (well) with LAMP, or any similar language? (Not Java, I know a launched Java applet can do this).

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

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

发布评论

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

评论(2

远昼 2024-07-16 12:27:49

如果您谈论的是近乎实时的应用程序(例如消息传递程序)而不是实际的实时应用程序,那么它是可以完成的。 该技术称为“长轮询”或comet,并已被成功使用几家主要的网络初创公司(例如 Meebo)。

HTML 5 规范还包括内置的 消息 API< /a> 这应该真正推动这些技术成为主流,因为它在下一代浏览器(以及当前一代的一些浏览器)中实现。

If you're talking about a near-realtime application such as a messaging program and not actual realtime then it can be done. The technique is called 'long-polling' or comet and has been used successfully by several major web startups (Meebo for example).

HTML 5 specifications also include a built-in messaging API which should really propel those techniques into the mainstream as it is implemented in the next generation of browsers (and some of the current generation as well).

无声无音无过去 2024-07-16 12:27:49

AJAX 部分很好。 Lightstreamer 和其他 Comet(Http 服务器推送)服务器等产品可以提供近乎实时的通信。

等式中的 LAMP 部分是令我担心的部分。 您可能需要某种自定义后端才能实现高性能。 LA部分还不错。 您的申请需求可能会导致您重新考虑 MP。

The AJAX part of this is fine. Products like Lightstreamer and other Comet (Http server push) servers can provide near real time communication.

The LAMP part of the equation is the one that worries me. You'll probably need a custom back end of sorts in order to achieve high performance. The LA parts are fine. The needs of your application may cause you to reconsider the MP.

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