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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:21:41+00:00 2026-06-04T05:21:41+00:00

I am writing an application that keeps track of content pushed around between users

  • 0

I am writing an application that keeps track of content pushed around between users of a certain task. I am thinking of using WebSockets to send down new content as they are available to all users who are currently using the app for that given task.

I am writing this on Rails and the client side app is on iOS (probably going to be in Android too). I’m afraid that this WebSocket solution might not scale well. I am after some advice and things to consider while making the decision to go with WebSockets vs. some kind of polling solution.

Would Ruby on Rails servers (like Heroku) support large number of WebSockets open at the same time? Let’s say a million connections for argument sake. Any material anyone can provide me of such stuff?

Would it cost a lot more on server hosting if I architect it this way?

Is it even possible to maintain millions of WebSockets simultaneously? I feel like this may not be the best design decision.

This is my first try at a proper Rails API. Any advice is greatly appreciated. Thx.

  • 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-04T05:21:43+00:00Added an answer on June 4, 2026 at 5:21 am

    Million connections over WebSockets, using Ruby, I can’t see its real if you not using clustering to spread connections between different instances to handle all the data processing.
    The problem here is serializing and deserializing data.

    As well you have to research of how often you will need to pull data to client from server, and if it worth to have just periodical checks using AJAX, then handling connection for whole time. Because if you do handle connection and then you not using it – it is waste of resources. WebSockets are build on top of TCP layer, and all connections are not “cheap” as well going through for OS and asking them for data available again is not the simple process, with millions connections it is something really almost impossible without using most advanced technologies in the world.

    I head that Erlang is able to handle millions of connections, but I don’t have details over it. As well connection is one thing, another is processing data and interaction between connections – this you might want to check, because if you have heavy processing algorithms, then you definitely need to look into horizontal scaling options over clustering solutions.

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

Sidebar

Related Questions

I am writing an application that helps book exchange between users. I am using
I'm writing an application using Perl and Gtk2-Perl that keeps track of elapsed time.
So I'm writing an application in C# using SQLITE that will keep track of
I'm writing a small web application that keeps track a number of tickets. The
I'm writing a Java application that runs on Linux (using Sun's JDK). It keeps
I'm busy writing a application that refreshes a IFrame completely using javascript, now my
I'm writing a Comet application that has to keep track of each open connection
I'm writing an application that keep track of a library of music, and I
I am writing an ASP.NET application that will keep track of bandwidth being used
I have started writing an application that gets in a certain website and gets

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.