<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 03/13/2017 10:47 AM, Frank Muller
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAFA6GnArm7GkXXmphwD4amtb8sw626w9o691d+q6i6fJuo-KbA@mail.gmail.com"
      type="cite">
      <div>Thanks Loïc, that was the first lib I found. But it seems to
        be outdated. </div>
      <div><br>
      </div>
      <div>I'll will dig into the FastCGI spec soon.</div>
      <div><br>
      </div>
      <div>Anyone else?</div>
    </blockquote>
    <br>
    If you are using PHP and/or Python code as services that are always
    running for the sake of efficiency and you want to maximize
    throughput (avoiding an Erlang port of cnode being a bottleneck),
    CloudI can provide service messaging and be an application server
    for the PHP/Python with Erlang.  The cloudi_service_http_cowboy and
    cloudi_service_http_elli provide integration for making HTTP
    requests CloudI service requests.  There is some justification at
    <a class="moz-txt-link-freetext" href="http://cloudi.org/faq.html#4_Erlang">http://cloudi.org/faq.html#4_Erlang</a> and examples at
    <a class="moz-txt-link-freetext" href="http://cloudi.org/tutorials.html#cloudi_examples">http://cloudi.org/tutorials.html#cloudi_examples</a> .<br>
    <br>
    <blockquote
cite="mid:CAFA6GnArm7GkXXmphwD4amtb8sw626w9o691d+q6i6fJuo-KbA@mail.gmail.com"
      type="cite">
      <div><br>
      </div>
      <div>/Frank</div>
      <div><br>
      </div>
      <div>
        <div class="gmail_quote">
          <div><<a moz-do-not-send="true"
              href="mailto:essen@ninenines.eu">essen@ninenines.eu</a>> <br>
          </div>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">The
            typical setup uses fastcgi: <a moz-do-not-send="true"
              href="https://en.wikipedia.org/wiki/FastCGI"
              rel="noreferrer" class="gmail_msg" target="_blank">https://en.wikipedia.org/wiki/FastCGI</a><br
              class="gmail_msg">
            <br class="gmail_msg">
            There was an early attempt by Anthony at<br
              class="gmail_msg">
            <a moz-do-not-send="true"
              href="https://github.com/extend/ex_fcgi" rel="noreferrer"
              class="gmail_msg" target="_blank">https://github.com/extend/ex_fcgi</a>
            - not sure how much of it still works,<br class="gmail_msg">
            but probably worth salvaging.<br class="gmail_msg">
            <br class="gmail_msg">
            On 03/13/2017 06:09 PM, Frank Muller wrote:<br
              class="gmail_msg">
            > Hi guys<br class="gmail_msg">
            ><br class="gmail_msg">
            > What’s the most efficient way to run PHP (Python)
            scripts behind Erlang?<br class="gmail_msg">
            ><br class="gmail_msg">
            > I would like to receive HTTP requests in Cowboy and
            forward them to a<br class="gmail_msg">
            > PHP/Python backend.<br class="gmail_msg">
            ><br class="gmail_msg">
            > Get the response back from the backend and forward it
            to the client.<br class="gmail_msg">
            ><br class="gmail_msg">
            > Thanks in advance.<br class="gmail_msg">
            > /Frank<br class="gmail_msg">
            ><br class="gmail_msg">
            ><br class="gmail_msg">
            > _______________________________________________<br
              class="gmail_msg">
            > erlang-questions mailing list<br class="gmail_msg">
            > <a moz-do-not-send="true"
              href="mailto:erlang-questions@erlang.org"
              class="gmail_msg" target="_blank">erlang-questions@erlang.org</a><br
              class="gmail_msg">
            > <a moz-do-not-send="true"
              href="http://erlang.org/mailman/listinfo/erlang-questions"
              rel="noreferrer" class="gmail_msg" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br
              class="gmail_msg">
            ><br class="gmail_msg">
            <br class="gmail_msg">
            --<br class="gmail_msg">
            Loïc Hoguin<br class="gmail_msg">
            <a moz-do-not-send="true" href="https://ninenines.eu"
              rel="noreferrer" class="gmail_msg" target="_blank">https://ninenines.eu</a><br
              class="gmail_msg">
          </blockquote>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
erlang-questions mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>