Web 高负载图像处理架构

发布于 2024-10-20 17:42:40 字数 635 浏览 5 评论 0原文

我必须实现以下高负载应用程序:

用户通过浏览器将图像发送到网络服务器。服务器应该处理图像并将结果(几个字符串)发送回用户的浏览器。结果应在 10 秒内显示,并且服务器处理时 Html-UI 应响应(非阻塞)。

您如何看待以下架构?技术是否合适且解决方案是否可扩展?

  1. 有多个 Web 服务器(~2-4)已准备好获取用户图像。
  2. 当接收到图像时,它被委托给其中一台处理服务器(本地网络中应该有大约 50 个处理服务器,无法从 Internet 访问)
  3. (a)如果处理结果通过 ajax 准备好,客户端开始轮询 Web 服务器,间隔时间(1000 毫秒。)
  4. (b) 客户端具有实现双工浏览器 <-> 的 flash/silverlight 组件结果准备好后立即从服务器接收结果的网络服务器通道。

其中有一些空洞的东西:

  1. 您个人更喜欢在互联网环境中使用ajax轮询方法还是双工通信(使用flash/silverlight)?或者你会把它们混合起来?
  2. Web服务器如何知道处理结果已经准备好?我想本地互联网中应该有一个快速响应的中介服务,由处理服务器(最多 50 个处理服务器)通知处理结果,并通知 Web 服务器结果已准备好。

I have to implement the following high-load application:

Users send images to a web-server via browsers. Server should process images and send results (several strings) to user's browsers back. Results should appear in 10 seconds and Html-UI should be resposive (non blocked) while server processing.

What do you think about the following architecture, are technologies are appropriate and solution is scalable?

  1. There are several web-servers (~2-4) that are ready to get user images.
  2. When the image is received it's deligated to one of processing-servers (there should be ~50 processing servers in local network that are not accessible from Internet)
  3. (a) Client starts to poll web-server if processing result is ready via ajax with interval (1000 ms.)
  4. (b) Client has flash/silverlight component that implements duplex browser <-> web-server channel to receive results from server as soon as results are ready.

There are some vapour things in that:

  1. Would you personally prefer ajax polling approach or duplex communication (with flash/silverlight) in Internet environment? Or will you mix them ?
  2. How web-server should know that processing results are ready? I guess there should be single fast-responsive mediator service in local internet that is notified by processing servers (up to 50 processing servers) with processing results and notifies web-servers that results are ready.

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

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

发布评论

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

评论(1

雨夜星沙 2024-10-27 17:42:40

您需要的是并行处理的框架。看一下:

http://gearman.org/

What you need is a framework for parallel processing. Take a look at:

http://gearman.org/

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