<div><div>Thank you guys for all these links. </div><div>Still studying them. </div><div><br></div><div>/Frank</div><div><br></div><div><<a href="mailto:raghav.karol@gmail.com">raghav.karol@gmail.com</a>> wrote :<br></div></div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_msg">Hi Frank, <div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">It might be worthwhile to look into Cowboy + RabbitMQ RPC. I have seen this pattern used in production, (<10 ms latency in AWS).</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Cowboy handles web requests and makes AMQP RPC calls to a PHP (Python) service. You get all the benefits (and drawbacks) of having a queue of work, e.g., being able to start multiple workers dynamically to scale up and down.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">--</div><div class="gmail_msg">Raghav</div></div><div class="gmail_extra gmail_msg"><br class="gmail_msg"><div class="gmail_quote gmail_msg"></div></div><div class="gmail_extra gmail_msg"><div class="gmail_quote gmail_msg">On Mon, Mar 13, 2017 at 6:09 PM, Frank Muller <span class="gmail_msg"><<a href="mailto:frank.muller.erl@gmail.com" class="gmail_msg" target="_blank">frank.muller.erl@gmail.com</a>></span> wrote:<br class="gmail_msg"></div></div><div class="gmail_extra gmail_msg"><div class="gmail_quote gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg">Hi guys</span><br style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg"><span style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg"></span><br style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg"><span style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg">What’s the most efficient way to run PHP (Python) </span><span style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg">scripts</span><span style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg"> behind Erlang?</span><br style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg"><span style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg"></span><br style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg"><span style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg">I would like to receive HTTP requests in Cowboy and forward them to a PHP/Python backend.</span><div class="gmail_msg"><br style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg"><span style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg">Get the response back from the backend and forward it to the client.</span><br style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg"><span style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg"></span><br class="gmail_msg">Thanks in advance.<span class="m_-3536879195077387728HOEnZb gmail_msg"><font color="#888888" class="gmail_msg"><br style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg"><span style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg">/Frank</span><br style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg"></font></span></div>
<br class="gmail_msg"></blockquote></div></div><div class="gmail_extra gmail_msg"><div class="gmail_quote gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">_______________________________________________<br class="gmail_msg">
erlang-questions mailing list<br class="gmail_msg">
<a href="mailto:erlang-questions@erlang.org" class="gmail_msg" target="_blank">erlang-questions@erlang.org</a><br class="gmail_msg">
<a 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"></blockquote></div></div><div class="gmail_extra gmail_msg"><br class="gmail_msg"><br clear="all" class="gmail_msg"><div class="gmail_msg"><br class="gmail_msg"></div>-- <br class="gmail_msg"><div class="m_-3536879195077387728gmail_signature gmail_msg" data-smartmail="gmail_signature">Raghav</div>
</div></blockquote></div></div>