I ❤️SQL. I wish I had read this GORM for SQLaddicts series when I first started learning GORM. Emmanuel Rosa shows how to achieve your SELECTs, JOINs and WHERE clauses with HQL, Criteria and Where queries. A must read for anyone who loves SQL and works with GORM.
A three part blog series which should have been in last week issue focused on GORM.
@jlorenzen shows, in an easy to follow example, how to use Grails promises.
I recently used Promises in a Grails service to execute batches of 30 - 40 posts requests against a third party service and wait for all of them to finish before proceeding. I must say promises are really, really elegant in Grails.
A more in depth analysis by Rob Friesel around Grails Promises.
Next time you see yourself doing several synchronous calls, your mind will alert you to take the asynchronous route.
I normally don't link directly to the Grails Docs. However, the newly docs in Asciidoc are awesome and the asynchronous programming section worth reading several times. I probably comeback to other parts such as Events in futures issues. In the meanwhile go ahead and check the Promises section.