Sunday, 8 September 2013

Can Django handle many slow file uploads?

Can Django handle many slow file uploads?

I'd like to use Django to act as a server to which about a 1000 clients
per hour will send files up to 20MB. These clients are on relatively slow
connections, so I expect uploads at 50kB/s average.
Though I know that a Django thread generally blocks on a request, from the
documentation I cannot figure out if there's any solution for this when it
comes to file uploads. The server will only be a simple VPS, so I'd like
to keep the number of workers small. Could I somehow have like 20
simultaneous uploads with significantly fewer workers?
I'm looking for a pure Django solution here, not something related to
deferring handling of uploads to another application or service. Also, I'd
like to stay away from "magic" like gevent if I can. Therefore I guess my
real question is whether there's something in Django for this use case
that I'm not aware of.

No comments:

Post a Comment