生产中的 Rails 服务器如何工作? [英] How rails server on production works?

查看:51
本文介绍了生产中的 Rails 服务器如何工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道,总的来说它是否更像 PHP(它加载到内存中,执行,然后在每次连接时终止).或者像Node.js(单个实例留在内存中并接受所有请求)

I wonder, in general is it more like PHP (it loads into memory, executes, and dies for each connect). Or it like Node.js (single instance stays in memory and accepts all requests)

推荐答案

技术上是后者,但根据应用服务器的不同,它可以看起来像前者,因为前者更容易管理.一个例子是 Phusion 乘客.看看 https://www.phusionpassenger.com/http://www.modrails.com/documentation/Architectural%20overview.html

Technically it's the latter, but depending on the application server, it can be made to look like the former because the former is easier to manage. One example is Phusion Passenger. Take a look at https://www.phusionpassenger.com/ and http://www.modrails.com/documentation/Architectural%20overview.html

这篇关于生产中的 Rails 服务器如何工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆