Hi guys,

so I am writing a django service accepting large, slow file uploads, this
process is blocking so I want to go async.

1. server accepts connection, read a chunk of uploaded data
2. calculate the chunk md5 hash
3. establish a connection to Amazon S3 and start upload the chunk

Loop the 1, 2, 3 steps, and I want as soon as the file upload is complete
retuern response saying OK and continue step 2 and 3 if unfinished.

After all done write the file md5 hash and s3 URL to database.

So should I use uWSGI's Gvent plugin, or should I use uWSGI's async
feature? Or other suggestions?

Could all of this be done in a django view function instead of writing a
separate WSGI app?

Thanks in advance!

btw anyone know an async Amazon S3 libraray? Should I just Gevent monkey
patch Boto?
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to