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 8823575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:23:26+00:00 2026-06-14T06:23:26+00:00

Our website has developed a need for real-time updates, and we are considering various

  • 0

Our website has developed a need for real-time updates, and we are considering various comet/long-polling solutions. After researching, we have settled on nginx as a reverse proxy to 4 tornado instances (hosted on Amazon EC2). We are currently using the traditional LAMP stack and have written a substantial amount of code in PHP. We are willing to convert our PHP code to Python to better support this solution. Here are my questions:

  1. Assuming a quad-core processor, is it ok for nginx to be running on the same server as the 4 tornado instances, or is it recommended to run two separate servers: one for nginx and one for the 4 tornado processes?

  2. Is there a benefit to using HAProxy in front of Nginx? Doesn’t Nginx handle load-balancing very well by itself?

  3. From my research, Nginx doesn’t appear to have a great URL redirecting module. Is it preferred to use Redis for redirects? If so, should Redis be in front of Nginx, or behind?

  4. A large portion of our application code will not be involved in real-time updates. This code contains several database queries and filesystem reads, so it clearly isn’t suitable for a non-blocking app server. From my research, I’ve read that the blocking issue is mitigated simply by having multiple Tornado instances, while others suggest using a separate app server (ex. Gunicorn/Django/Flask) for blocking calls. What is the best way to handle blocking calls when using a non-blocking server?

  5. Converting our code from PHP to Python will be a lengthy process. Is it acceptable to simultaneously run Apache/PHP and Tornado behind Nginx, or should we just stick to on language (either tornado with gunicorn/django/flask or tornado by itself)?

  • 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-06-14T06:23:28+00:00Added an answer on June 14, 2026 at 6:23 am

    I’ll go point by point:

    1. Yes. It’s ok to run tornado and nginx on one server. You can use nginx as reverse proxy for tornado also.

    2. Haproxy will give you benefit, if you have more than one server instances. Also it will allow you to proxy websockets directly to tornado.

    3. Actually, nginx can be used for redirects, with no problems. I haven’t heard about using redis for redirects – it’s key/value storage… may be you mean something else?

    4. Again, you can write blocking part in django and non-blocking part in tornado. Also tornado has some non-blocking libs for db queries. Not sure that you need powers of django here.

    5. Yes, it’s ok to run apache behind nginx. A lot of projects use nginx in front of apache for serving static files.

    Actually question is very basic – answer also. I can be more detailed on any of the point if you wish.

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

Sidebar

Related Questions

Our product has two clients, a website and a windows application. Both clients need
We've developed a website for one of our clients which has some embedded youtube
Our website has one section which often changes to match the user. (examples are
We have not purchased an SSL certificate so the user of our website has
A page within our MOSS publishing website has a property which is a lookup
We have a process in place that uploads files to our website. It has
In our client's website , favicon.ico file has several sizes from 8x8 to 32x32.
Our website has about 200K images stored in sitecore database now. It runs more
Our website has a configuration page such as config.aspx, when the page initializing will
Basically our website is listed in Google but the URL only has ourdomain.com whereas

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.