Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>So my two question: Why are Python webservers unstable? (What exactly is the cause, not the solution?)</p> </blockquote> <p>The problem here is the word <em>unstable</em>. You're reaching the implementation limit of the server process. This doesn't necessarily means it's unstable. It's like pushing your car to its limit. When there's no more speed you can gain would you say your car is unstable?</p> <p>This is a typical problem of "finding the good tool for the right job". One thing is the application server and another is serving a large amount of requests and handling connection pooling. The latter is a task handled by (web)servers like nginx, lighttpd, apache, uwsgi which are built to deal with the concurrency and routing.</p> <p>In detail, the servers you tried are built to handle a maximum amount of requests. After that limit is reached they drop connections. They's not built to en queue the connection for later.</p> <p>If you never tried, take a look also at <a href="http://www.tornadoweb.org/" rel="nofollow">Tornado</a>, it's good for game servers.</p> <blockquote> <p>Is using a standalone webserver + Python the only/best solution (if I stick to Python), or am I missing something?</p> </blockquote> <p>Yes. It's the best solution and not only for Python. It's a common design pattern. You'd see the same approach even in Ruby, PHP, Java.. The most common task is to distribute load across a cluster of application servers. </p> <p>A typical environment is:</p> <pre><code>USER -&gt; BALANCER (nginx,apache,ecc) -&gt; APPSERVER (uwsgi, twisted, gunicorn, ..) -&gt; WSGI Application </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload