New Project needs push notifications

37 views
Skip to first unread message

Perry Smith

unread,
Sep 30, 2014, 12:54:26 PM9/30/14
to rubyonra...@googlegroups.com
I'm starting a new Rails project probably using 4.1 or 4.2. The project
needs the ability for user's browsers to get updates via push
notifications. I know that Rails 4 kinda sorta added that but the last
time I looked it was shaky.

To sketch out what I'd like: suppose a user is looking at a page.
Think of it as a user looking at a history of activity for a project.
Another users does an update. I want the first user's browser to get
the new update. I don't think will work in this situation so I'm
looking for the server to push the updates out.

What is the current technology? Does Rails 4.1 or 4.2 have everything
it needs or do I still need some add on gems? If so which ones? If
Rails is complete, what are some areas of the Rails documentation to
review?

Thank you for your time,
pedz

--
Posted via http://www.ruby-forum.com/.

Vivek Sampara

unread,
Sep 30, 2014, 12:57:39 PM9/30/14
to rubyonra...@googlegroups.com
ActionController::Live all the way !!!! :) 

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a9ffecae0376009fe900105b3279e74e%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Jason Fleetwood-Boldt

unread,
Sep 30, 2014, 1:56:46 PM9/30/14
to rubyonra...@googlegroups.com

Perry-

You may also want to look into recently introduced Websockets functionality on Heroku

more information here https://devcenter.heroku.com/articles/ruby-websockets

-Jason

Perry Smith

unread,
Sep 30, 2014, 2:02:16 PM9/30/14
to rubyonra...@googlegroups.com
Thank you to Vivek and Jason.

One extra note: this is an internal restricted web site so I can't use
Heroku for this particular project but that type of information is also
interesting to me.

On a side note: in the past, I've used Apache. Sometimes with Passenger
and sometimes without. I'm curious on httpd recommendations as well.

Thank you again,

Jason Fleetwood-Boldt

unread,
Sep 30, 2014, 2:07:43 PM9/30/14
to rubyonra...@googlegroups.com

Being old(er), I'm like you. The kids all use nginx these days, often with thin as the webserver. Your mileage may vary.

Obviously, if you're using websockets, you'll need an architecture that supports that.

-Jason
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/179f21c03e0299ca6fb7c7ddcfee3d5c%40ruby-forum.com.

Vivek Sampara

unread,
Sep 30, 2014, 3:12:20 PM9/30/14
to rubyonra...@googlegroups.com
I'd recommend puma ( Application Server ) with Nginx ( Webserver) 

cpr

unread,
Oct 1, 2014, 9:11:43 AM10/1/14
to rubyonra...@googlegroups.com
We've used pusher.com in production for 2+ years with no issues. Pubnub is an option as well, but their packet size restrictions were/are(?) too small for us. Both have clean APIs, need no extra stuff (e.g. Redis), give nice stats, etc. Looking at ActionController::Live, the main diff seems to be whether you maintain and scale the functionality or someone else does it for you through a simple API and $20/month.

-Chris

Jim

unread,
Oct 2, 2014, 11:08:30 AM10/2/14
to rubyonra...@googlegroups.com
On Tuesday, September 30, 2014 2:02:16 PM UTC-4, Ruby-Forum.com User wrote:

On a side note: in the past, I've used Apache.  Sometimes with Passenger
and sometimes without.  I'm curious on httpd recommendations as well. 

I've used ActionController::Live with Passenger and Apache, so the stack you're familiar with should work just fine.

Jim

Reply all
Reply to author
Forward
0 new messages