<div dir="ltr">It is very easy to switch between using different servers; it's just a matter of changing the command line arguments to plackup. You can always start with the default server and experiment with using Starman (or other Plack servers).</div><div class="gmail_extra"><br><div class="gmail_quote">On 23 November 2015 at 08:40, Richard Reina <span dir="ltr"><<a href="mailto:gatorreina@gmail.com" target="_blank">gatorreina@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2015-11-23 8:52 GMT-06:00 Warren Young <span dir="ltr"><<a href="mailto:wyml@etr-usa.com" target="_blank">wyml@etr-usa.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Nov 21, 2015, at 10:18 AM, Gabor Szabo <<a href="mailto:gabor@szabgab.com" target="_blank">gabor@szabgab.com</a>> wrote:<br>
><br>
> that server is only capable to serve one client at a time.<br>
<br>
</span>While that is true, you need to keep that in perspective. “One client at a time” does not mean that you can’t have hundreds of people staring at a browser window that has rendered HTML returned from your app. Nor does it mean that if two of those users simultaneously click a link on that page that only one of those users will get content back.<br>
<br>
The only downside of running with the “simple” default web server is that if two simultaneous HTTP connections come into the web server, the server will handle one, then the other, in whatever order the kernel serializes the connections.<br>
<br>
This means that if you write your Dancer route handlers to be efficient, so that they return within a few milliseconds at most, you can in effect serve a great many clients, since most of them will be idle most of the time.<br>
<br>
The single-threaded web server only breaks down when you start getting to load levels where the server is handling at least one connection all the time, so that allowing to to handle a second or third in parallel can provide some benefit.<br>
<br>
Think of it like a highway: for almost all practical cases, a simple 2-lane highway suffices. You only need more than one lane in a given direction when the traffic load increases to the point where traffic would be bumper-to-bumper without the extra lane(s).<br>
<div><div>_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm" target="_blank">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" rel="noreferrer" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
</div></div></blockquote></div><br></div><div class="gmail_extra">Thank you Gabor, Andrew and Warren for your enlightening replies. Looks like I have additional decisions to make.<br></div></div>
<br>_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" rel="noreferrer" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
<br></blockquote></div><br></div>