且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将HTTP Streaming Server APE(Ajax推送引擎)连接到计算昂贵的服务器

更新时间:2023-08-21 17:56:04

APE用于交换JSON数据 - 而不是流数据。
因此,您必须找到一个解决方案,您的标准Web服务器(运行您的lib)接收并解析数据。
你可以用APE做什么然后被称为内联推送。这意味着,将数据从后端服务器发送到APE服务器,以便它可以将数据转发给客户端。

APE is meant for exchanging JSON data - not streamed data. So, you must find a solution where your standard web server (running your lib) receives and parses the data. What you can do with APE then is so called "inline push". This means, sending data from the backend server to the APE server so it can forward the data to the clients.

在您的情况下,我会定期发送解析库对APE服务器的状态更新,以便将其分发给客户端。

In your case, I would regularily have the parsing lib send a status update to the APE server so it can be distributed to the client.

关于您的问题:


  1. http://www.ape-project。 org / wiki / index.php / Libape-controller

  2. 无处 - 它不适合

  3. 使用anothother服务器端编程您选择的语言

  4. 显然,取决于您的Apache / Nginx和服务器语言

  5. 这是APE可以做和将做的事情 - 如果你做了必要的话在服务器端编程。您已经在我的博客上发表了评论,因此您可能已经看过 http:// www。 xosofox.de/2010/10/ape-user-handling/ - 这应该给你一些提示。

  1. http://www.ape-project.org/wiki/index.php/Libape-controller
  2. Nowhere - it is not meant for that
  3. With anothother server side programming language of your choice
  4. Obviously, depends on your Apache/Nginx and server language
  5. Thats something APE can and will do - if you do the required programming on the server side. You already commented on my blog, so you might have seen http://www.xosofox.de/2010/10/ape-user-handling/ - this should give you some hints.

tl; dr


  • 使用另一台服务器作为lib的后端

  • 让lib服务器通过内联推送向APE发送短状态更新,以便APE将其推送到
    客户端