Nginx 单元相对于 PSGI/Dancer 堆栈

Nginx Unit in relation to PSGI/Dancer stack

根据Nginx goes beyond its server roots and launches its application platform

..Unit is a modern application server for applications written in PHP, Python and Go (with support for node.js, Java, Ruby Perl and others following soon), that run in dynamic environments.

Unit 适合 ngnix->PSGI->Starman->Dancer 堆栈的什么位置? 它取代或增加了哪一部分?

在您的示例中,nginx 和 Starman 使用 HTTP 而不是 PSGI 进行通信(因为 PSGI 是接口,而 HTTP 是协议)。所以堆栈看起来像 Unit->Dancer。如果你需要一些 nginx 特性,你可以在单元前面使用它:nginx->Unit->Dancer.