问题描述
我想知道,总的来说它是否更像 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 服务器如何工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!