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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:10:43+00:00 2026-05-24T17:10:43+00:00

There are various old questions in the stackoverflow archives, like this one , which

  • 0

There are various old questions in the stackoverflow archives, like this one, which talk about cometd and friends. But I wanted to ask what the best technology is these days. Is it cometd?

I want to implement basic server-side push using ruby, preferably rails (though eventmachine or similar is possible). What is the best way to do this? For the purposes of this question, imagine I’m building a browser-based chat service. I use jQuery.

What do people use these days? Anyone know what kind of technology Facebook uses to push notifications to browsers? Priorities (in order) are:

  1. Ease of integrating with jQuery (or pure javascript) + Ruby-based server.
  2. Simplicity/elegance.
  3. Some degree of cross-browser compatibility (though not necessarily as old as IE 6).
  4. Performance.
  • 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-24T17:10:44+00:00Added an answer on May 24, 2026 at 5:10 pm

    I’ve experimented with socket.io and found it to work very well across ancient and modern browsers. With Node.js it’s trivial to set up the server side for a messaging bus. If you are uncomfortable with Node.js I would recommend looking at eventmachine.

    In order to scale the messaging service you are building you’re server will need the ability to handle many long running connections at once. Traditional web servers aren’t designed with this in mind.

    Here is what I’d recommend. Create your base web application in Rails how you normally would. When you serve up a page, make sure socket.io on the client connects to your messaging server (this is going to be different than rails – node.js or eventmachine server). When you want to send a message to the client, your server-side rails app should send a message via the messaging server your client is listening to.

    I’ve done this before using redis pub/sub, node.js, and socket.io. When I want to send a message from the rails server to the client, I publish a message to a channel in redis. Each client that is connected to the messaging service (built with node.js or eventmachine) will be subscribed to the channel and push the message to the client. The client can then deserialize the message and perform the necessary action.

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

Sidebar

Related Questions

There are various posts on the web about this issue whereby the ComboBox only
There are various answers on Stack Overflow which explain the conditions under which tail
I've a DLL assembly, in which there are various classes. Each class has around
I've read some posts about this but none cover this issue. I guess its
Let me begin by saying this; I know that similar questions exist, but they
I was reading some old articles about debugging, and one of them mentioned the
There are various ways to maintain user state using in web development. These are
There are various ways to take screenshots of a running application in Windows. However,
There are various ways of exiting a process: e.g.: ExitProcess, ExitThread (from the main
There are various ways to bind events to elements in jquery .click , .bind,

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.