• 30p87@feddit.de
    link
    fedilink
    arrow-up
    4
    ·
    5 months ago

    I wish everything would just default to a unix socket in /run, with only nginx managing http and stream reverse sockets.

    • verstra@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      5 months ago

      Wait, but if you have, for example an HTTP API and you listen on a unix socket in for incoming requests, this is quite a lot of overhead in parsing HTTP headers. It is not much, but also cannot be the recommended solution on how to do network applications.

      • WaterWaiver@aussie.zone
        link
        fedilink
        English
        arrow-up
        1
        ·
        5 months ago

        Replacing a TCP socket with a UNIX socket doesn’t affect the amount of headers you have to parse.