• redcalcium
    arrow-up
    1
    arrow-down
    0
    ·
    10 months ago
    link
    fedilink

    Why not? Is it because a typical nodejs app include hundreds of npm dependencies? As long as it can launch and finish within 60s (default timeout for apache), you should be able to use it.

    • TCB13English
      arrow-up
      2
      arrow-down
      0
      ·
      10 months ago
      link
      fedilink

      Who wants to wait 60s for a website to load?

      • redcalcium
        arrow-up
        1
        arrow-down
        0
        ·
        10 months ago
        link
        fedilink

        Not saying you should use CGI (who does these days), but saying you could still use it if you want

        • TCB13English
          arrow-up
          1
          arrow-down
          0
          ·
          10 months ago
          link
          fedilink

          The point is that PHP is much more performant and doesn’t waste resources as NodeJS does. While you can run PHP on CGI with a decent bootstrap performance that won’t get people annoyed the same can’t be said of NodeJS. Nowadays people do PHP-FPM which is way faster at scaling up that any NodeJS process manager out there and doesn’t sit wasting resources when a particular application doesn’t have requests.