Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 514257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:30:22+00:00 2026-05-13T07:30:22+00:00

I have the nginx upload module handling site uploads, but still need to transfer

  • 0

I have the nginx upload module handling site uploads, but still need to transfer files (let’s say 3-20mb each) to our cdn, and would rather not delegate that to a background job.

What is the best way to do this with tornado without blocking other requests? Can i do this in an async callback?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T07:30:22+00:00Added an answer on May 13, 2026 at 7:30 am

    advice on the tornado google group points to using an async callback (documented at http://www.tornadoweb.org/documentation#non-blocking-asynchronous-requests) to move the file to the cdn.

    the nginx upload module writes the file to disk and then passes parameters describing the upload(s) back to the view. therefore, the file isn’t in memory, but the time it takes to read from disk–which would cause the request process to block itself, but not other tornado processes, afaik–is negligible.

    that said, anything that doesn’t need to be processed online shouldn’t be, and should be deferred to a task queue like celeryd or similar.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have nginx setup, acting as a reverse proxy to apache. However, I need
I have nginx acting as a reverse proxy to apache. I now need to
Now that I have nginx setup I need to be able to hide my
I currently upload to a webservice on an nginx server using the upload module
I have configured nginx + uwsgi to serve foo.com, but foo.com/bar/ I want to
I have a rails application running on Nginx which needs to serve files for
I have an NGINX server with fastcgi/PHP running on it. I need to add
I have recently installed Nginx + Thin on my deployment server, but i am
I've just got my first VPS & have set up NGinx, Ruby, Rails &
I have set up the Nginx +unicorn for my rails application, it is working

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.