Is there access to the Perl PSGI / Plack server that only speaks PSGI and not HTTP?

Normal deployment looked like in the past and presented to me as follows:

+------------------+     +---------+ tcp +-------+ tcp
| PSGI Application |----o| Starman |---->| nginx |<----(internet)
+------------------+     +---------+     +-------+

In fact, I have two full-fledged web servers between the Internet and the actual web application.

Since nginx has a direct embedding of uWSGI, and uWSGI supports the PSGI protocol, which is a WSGI plug, I would like to use a PSGI broker (only PSGI without HTTP) instead of a full web server (Starman).

Is a solution available for a PSGI broker?

+4
source share
1 answer

PSGI (, WSGI) - , , . . : arrayref, HTTP, HTTP . , , .

, PSGI, Perl. Perl C, libperl.so. , WSGI, Python.

- , PSGI Starman. , ( ).

, " nginx uWSGI ". , WGSI Nginx. , WSGI uwsgi, Nginx TCP, uWSGI. , Nginx Starman, , Starman HTTP:

.----------------------.          .-----------.
|       Starman        |          |   Nginx   |
|                      |   HTTP   |           |   HTTP
| .------------------. |<---------|           |<-------(internet)
| | PSGI Application | |          |           |
| '------------------' |          |           |
'----------------------'          '-----------'

HTTP , uWSGI, , uWSGI, libperl.so PSGI. uWSGI :

.----------------------.           .----------.
|        uWSGI         |           |  Nginx   |
|                      |   uWSGI   |          |   HTTP
| .------------------. |<----------|          |<-------(internet)
| | PSGI Application | |           |          |
| '------------------' |           |          |
'----------------------'           '----------'
+3

Source: https://habr.com/ru/post/1693364/


All Articles