Quantcast

Re: Grails & Realtime

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Grails & Realtime

Christopher Dimitriadis

Sorry for the late response but I am currently working on some grails projects!


Indeed the evolution of Grails in a realtime/event loop framework is not straightforward but it will bring a new area for Java/Groovy developers seeking for a more efficient way to scale their web apps. The are many benefits considering the fact that a multi-threaded environment will merge with server realtime events/event loop. I have recently reviewed a Node.js framework called Sails.js and literally, if you wouldn't have to code in JavaScript it would be exactly like Grails (the name is obvious). I really liked the fact that in Sails.js you could write the business logic inside the controllers as always but the client/server communication was handled with Socket.IO. The server code is the same like handling HTTP requests but in client you use Socket.IO. Sails.js automatically understands that it is a Socket.IO request and calls the relevant controller/action. "It just makes HTTP and Socket.IO interoperable, making it easier than ever to add realtime/pubsub/comet functionality to your app". I think that kind of functionality would be absolutely great for Grails and not having to add extra code/plugins(events/atmosphere plugin) or write the logic inside Services. Maybe the switching from HTTP/Socket.IO request could be configurable on Controller/action level through annotations or as always globally (Config.groovy or UrlMappings.groovy). Of cource Socket.IO reguires both client/side implementations, so there will be a need for a relevant plugin that can be used inside gsp. Another issue is the server. Do you considering Netty for this matter? Tomcat 8 defaults to NIO, with no extra configuration, so we could leverage that!


Well thank you for giving me the opportunity to discuss with you these matters and I'm looking forward for your response!




Christopher Dimitriadis

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/cb7077fb-e80a-4a7d-aae2-1d0a1f6ebee3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...