This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes Utilizing Node.js Along Side Grails Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Utilizing Node.js Along Side Grails" Watch "Utilizing Node.js Along Side Grails" New topic
Author

Utilizing Node.js Along Side Grails

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Also asked here but it is likely to get closed.

We have a grails application in the wild. We'd like to give users using current browsers a better experience and provide some auto-updating of pieces of the site. Looking into all the options and specifically with Grails, I'm not impressed.

I really want to use WebSockets and from the investigating I've done up to this point I believe our best option is Node.js. But obviously we can't redo our application. I like Grails.

So my idea is that we use Node.js along side Grails to basically act as a READ-ONLY proxy between the client and the data. All the Node.js application will do is pull data from the database and deliver it to the client over WebSockets.

Does that sound like a valid approach? Is this something anyone else has done?


GenRocket - Experts at Building Test Data
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7

I have done an application where we used Atmosphere to deliver data to some thin clients over websockets. Atmosphere seemed to have some sort of issue or another on just about everything but Jetty though (despite their advertised support). I have never used Node.js but it seems like the idea is worth a try. My application was quite different from what you are attempting though as the browser was displayed on a projector (not something the user could interact with) and we just updated it. There was also a fixed number of these thin clients so I am not sure how all of this scales.


[How To Ask Questions][Read before you PM me]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Utilizing Node.js Along Side Grails
 
Similar Threads
WebSockets
Tomcat 7 and HTML5 websockets support
AJAX,WebSockets, XMPP?
Secure Websockets 443 and Java