this post was submitted on 01 Aug 2023
8 points (100.0% liked)

Programming

13342 readers
1 users here now

All things programming and coding related. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 1 year ago
MODERATORS
 

There are web applications that must always run on the server in order to work, create open port/socket we usually reverse proxy via Nginx or Apache later.

But there also are applications that do not run unless resource is requested or cron job is triggered. Most commonly PHP sites.

How can be call this two types to distinguish them?

top 4 comments
sorted by: hot top controversial new old
[–] heartlessevil@lemmy.one 4 points 1 year ago

Probably server-style versus CGI style? But it's a blurry distinction because things we usually run as servers (such as node.js or rails) can hypothetically be run as CGI; and things we usually run CGI style (such as PHP) can also be run server-style with FastCGI.

[–] elmicha@feddit.de 2 points 1 year ago

Maybe you are talking about CGI scripts? With CGI scripts the web server will start a new process for each request. PHP can run as php-cgi, but nowadays mod_php and php-fpm are more common. CGI scripts can also be shell scripts or compiled programs.

[–] obosob@feddit.uk 2 points 1 year ago

As others said, you're talking about CGI

Thanks everyone for responces 😊.