How many concurrent requests can a web2py instance handle?

143 views
Skip to first unread message

nethu...@gmail.com

unread,
Mar 3, 2018, 12:26:06 AM3/3/18
to web2py-users
I know this is probably not a specific web2py issue, but rather a WSGI one. I am somewhat confused. However, this is not the largely discussed "Does web2py scale?" question.

I am wondering if a single web2py instance can handle two or more requests concurrently, or if two users access to the site at the same time, then one request is queued up?

I am deploying a site in PythonAnywhere for a small business, with 4 web workers. I guess that means 4 web2py processes and that the webserver will dispatch incoming requests to one idle process of those four?

Thanks in advance!

Kiran Subbaraman

unread,
Mar 4, 2018, 6:24:45 AM3/4/18
to web...@googlegroups.com
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

nethu...@gmail.com

unread,
Mar 4, 2018, 3:16:51 PM3/4/18
to web2py-users
Thanks for the reply but those benchmarks don't answer my question.

Anthony

unread,
Mar 5, 2018, 7:07:40 AM3/5/18
to web2py-users
One request at a time per thread or process made available by the web server.

Anthony

nethu...@gmail.com

unread,
Mar 5, 2018, 7:02:33 PM3/5/18
to web2py-users
Then one web2py instance can only handle one request, that's right?

Al Ex

unread,
Mar 6, 2018, 3:07:17 AM3/6/18
to web...@googlegroups.com
On Mar 6, 2018 09:02, <nethu...@gmail.com> wrote:
Then one web2py instance can only handle one request, that's right?

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe@googlegroups.com.

Anthony

unread,
Mar 6, 2018, 2:09:05 PM3/6/18
to web2py-users
On Monday, March 5, 2018 at 7:02:33 PM UTC-5, nethu...@gmail.com wrote:
Then one web2py instance can only handle one request, that's right?

I believe that is how Pythonanywhere works, but you might want to confirm with them.

Anthony 

nethu...@gmail.com

unread,
Mar 7, 2018, 1:01:22 PM3/7/18
to web2py-users
Thanks Anthony.
Reply all
Reply to author
Forward
0 new messages