Experiences using Grails in a microservice architecture
summary
Grails runs as the lowest-layer REST resource framework while Spring Boot handles non-web consumers; a subscription service uses GORM with Cassandra, emits events to a broadcast channel, and relies on Spring Batch for compensation jobs. Shared code ships as plugins to an internal nexus and a thin Java jar for Spring Integration (dedupe filter, custom deserializer). CI/CD uses Bamboo plus Puppet skeletons for rolling zero‑downtime deploys. Logging uses a correlation id in Log4j MDC, aggregated in Splunk, with New Relic custom traces for per‑call timing.
AI-written summary · about
chapters (46)
- 0:00Welcome
- 1:04Who am I
- 1:29What is a microservice
- 2:11Our architecture
- 2:59Layered microservices
- 4:48Grails
- 5:17Grails for batch jobs
- 5:56Architecture questions
- 7:31Example service
- 8:02Requirement
- 8:19Building our grail service
- 9:04Setting up our plugins
- 9:32Setting up Cucumber
- 11:39Grails Applications
- 12:52Grails Plugin
- 14:20Security
- 15:03Spring Security
- 16:13How to share plugins
- 16:27Versioning dependency resolution
- 17:18General rules for plugins
- 21:26Server setup
- 21:56Standard tomcat setup
- 22:45Groovy configuration
- 23:56Deployments
- 24:20Bamboo
- 25:13Spring Integration
- 27:53Correlation ID
- 28:42Log aggregation tool
- 29:01Correlation id pitfalls
- 30:38Splunk
- 33:37Monitoring
- 36:07Custom Tracing
- 38:45Compensation
- 39:09Spring Batch
- 40:13Poor communication
- 41:27Poor deployment
- 43:54Lack of log aggregation
- 44:32Lack of communication
- 46:53Coordinating releases
- 48:31API deprecation
- 49:58Latency fault tolerance
- 51:53Compensation job
- 53:09jira
- 53:35Checklist
- 56:56Rolling deploys
- 59:45Crosscutting concerns
related talks
01h 27mMicroservice Architecture with Grails
37mGrails State of the Union
53mBooting your micro-services architecture with Spring and Netflix
49mDDD Strategic Design with Spring Boot
48mImplementing DDD with the Spring Ecosystem
36mTools that will help you survive in the micro-service architecture
01h 03mThe Bootiful Microservice
51mBrewing the Best of All Worlds
