Web Farm 和 Web Garden 可以一起使用吗?

发布于 2024-09-08 10:49:06 字数 133 浏览 1 评论 0原文

Web farm用于多个请求和多个用户之间的使用切换。

Web Garden 为一个用户的每个处理器单独创建工作进程。

是否可以使用worker进程作为交换机,并将其转换为可以基于算法分配多个处理器的Web Farm?

Web farm is used for multiple request and multiple user using switching among them.

Web Garden creates worker processes for every processor individually for one user.

Is it possible to use worker process as a switch and convert it into Web Farm that can allocate multiple processor on bases of algorithm?

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

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

发布评论

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

评论(1

我爱人 2024-09-15 10:49:06

从我的角度来看(如果我错误,请纠正我)

网络农场和网络花园之间的实际区别在于,网络农场是在许多计算机上运行的计划,而网络花园是在单台计算机上运行的计划。

从我的角度来看,您不需要尝试将网络花园转换为网络农场,这是没有任何意义的。 (如果我错了,请纠正我)

如果你有一台机器,并且在 Web Garden iis 设置上打开了 1 个以上工作进程,那么你只需要让你的设置作为网络场运行,连接一个数据库,使用互斥锁或其他锁来确保 2 个或更多工作进程一起同步。

在我的应用程序中,我同时使用了它们,我唯一的问题是数据的同步。

From my point of view (and please correct me if I mistake)

the practical diferent betwing web farm and web garden is that the web farm is a plan running on many computers, and web garden is a plan running on a single machine.

You do not need from my point of view to try to convert web garden to web farm, is with out any point. (please correct me if I mistake)

If you have one machine, and you open more than 1 worker process on Web Garden iis settings, then you only need to make your setup running as web farm, have one database connect, use mutex or other lock for be sure that 2 or more worker process are synchronize together.

In my application I have use them both and my only issue is the synchronization of the data.

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