Using Oracle Coherence with Grails Part I (Fernando Takai)

, , August 25th, 2008

Original Source

Fernando Takai has been experimenting with Oracle Coherence lately. In case you haven’t heard of Oracle Coherence before, it is a JCache -compliant in-memory distributed data grid solution for clustered applications and application servers, in other words a fast and reliable way to keep your data ready when the request load gets ugly. Fernando is also a developer fond of Grails, so he decided to test Coherence as a second-level cache for Hibernate, driven by GORM of course.

He first demonstrates the basics of running Coherence and making sure that it is working. The next step involves defining the configuration of the second-level cache (for which he provides a pastebin url, nice). Finally enabling the cache and running Grail’s console. Some useful bits of information are thrown along the way, like enabling your domain classes to be cached.

Those steps are sufficient enough to get you up to speed should you decided to try it. We are sure there are plenty of knobs and levers you can turn and switch to tweak the secon-level cache. Fernando promises to describe how to embed the cache into a real app and do some tuning in a future installment.

Tags: , ,