We keep exploring the async features of Grails. This Grails Guide shows to handle a common scenario. A user registers himself in an application and the app sends the user a welcome email; asynchronously.
Great talk by @bitboss in the latest GR8Conf EU. A must watch to understand Grails 3 Events. Specially interesting to watch the first part of his talk where he reasons the why?. Why using events allows a lower coupling than other async vehicles such as Promises.
Github repository with sample code shown during the talk.
I've talked in previous issues about RxGORM. RxJava plugin for Grails aims to:
Integrate RxJava with the controller layer of Grails to complete the picture and enable complete end-to-end integration of RxJava with Grails.
@graemerocher and the rest of the OCI Grails team keep navigation the Grails ship across the asynchronous and event-based world.
Checkout a Gist Example if you are curious.
I normally don't link to Milestone releases but 3.3 is a big milestone for Grails with mayor improvements and features:
Test your app with 3.3.0 and give feedback. You can download 3.3.0.M1 with SDK and compare to see the necessary changes.
Dan Bunker offers a Grails 2 course which introduces:
- Grails Tools
- Grails Domain Classes and GORM
- Grails Controllers and GSP
- Grails Spring Security
Through the course he uses the Grails Database Migration Plugin which is a must whether you are using Grails 2 or Grails 3.
He also describes Cross-site scripting (XSS) attacks and how to prevent them in the context of a Grails app.
@mikehoss42's blog post illustrates how to send and consume Events between two services. An excelent post to get started with Grails 3 Events
@goeh talk at GR8Conf shows how to communicate with events in Grails. Grails 3 includes event support based on the Reactor library. The slides are a great introduction of events in Grails 3 and contain some nice code examples about how to trigger and receive events. How to consume event replies or event trigger events after commits.
I attended @goeh talk at Greach, Cut your application to pieces . I was amazed by the incredible separation of concerns that he has achieved with the use plugins in Grails. I imagine he is working in migrating every plugin to grails 3 and taking advantage of events in Grails 3. That will be the cherry on top of the cake.
With tips such as:
Grails will use the value defined by the grails.codegen.defaultPackage value in grails-app/conf/application.yml to decide which package to use.
This tutorial remembered me one of the greatest Software Web applications pr