在 Rails3 中运行 proxi 服务器
由于rails没有多线程机制,那么同时处理多个请求的常见良好实践是什么?
它通常是通过让 Apache 重定向到名为“Mongrel”的东西来完成的,还是在 Rails3 架构中与称为 Rack 的更新解决方案不同?
我的应用程序不必处理数千个用户,但它必须以优雅的方式处理最小的并发性。
谢谢!
Since rails does not have a mechanism for multi-threading, what is the common good-practice of handling multiple requests at the same time?
Is it usually done by having Apache redirect to something called "Mongrel" or is that different in the Rails3 architecture with the more current solution called something like Rack?
My application does not have to handle thousands of users, but it does have to handle minimal concurrency in an elegant manner.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,这就是机架服务器的工作。您可能会考虑使用 unicorn 或 Thin 作为 mongrel 的替代品。
Yes, this is the job of the rack server. You might look into unicorn or thin as alternatives to mongrel.