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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:37:44+00:00 2026-05-25T00:37:44+00:00

I am building a simple rails application and am working with Tornado for some

  • 0

I am building a simple rails application and am working with Tornado for some of the real-time parts of the app. My experience thus far as been limited to using a single web framework for all my needs. First time I am using two different web frameworks.

I am confused as to how rails and tornado can work together. So, I have a rails server and a tornado server running on different ports. They both will handle their own requests via their routing configuration. The backend make sense. The part I am confused about is the front-end integration. Let us say I have a page which shows my logged in/logged out status along with real-time stream of tweets from Twitter with a delete button next to each tweet. The logged/logged out status is known to my rails server. The tweets are being handled by my Tornado server. How do I integrate both pieces of information from the two servers in the front-end?

Do I call the Tornado server from my rails controller and process the JSON? If so, won’t I lose the real-time aspect of things?

Do I use an iframe in my .erb template which calls the Tornado server? If so, how do I integrate the iframe with the delete buttons next to each tweet?

Thanks in advance!

  • 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-25T00:37:45+00:00Added an answer on May 25, 2026 at 12:37 am

    I would run tornado and rails on two different ports (not port 80). I would run nginx on port 80. I would configure nginx to proxy for tornado in the /realtime name space and to rails everywhere else. Now your client said JS code just asks the server for different URLs and it never has to know which one is which.

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

Sidebar

Related Questions

I've been following the rails edge guide in building a simple recipe app, and
I'm building a simple real time chat using Juggernaut, Redis, SQLite and Rails 3.1
I am following a tutorial for building a very simple rails app. I have
it's been quite some time since i last wrote Rails and i've forgotten some
So far I have been building my Rail app on a Mac OS X
I'm building a simple website generator application in Rails 3.0. I'd like a publish
I'm building a simple chat app with Rails. when a user types in a
I'm building a simple two page Rails application where a user: Enters credit card
I have been building a Rails application that performs accounting functionality. As part of
I'm building a Rails app that needs some data visualization. What is a good

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.