Setting up EHCache on Railo

One of the things I like about my current job at CONTENS is that we do a lot of work on the technical side of the platform just thinking up ways to improve overall performance. Caching and the ability to Cluster naturally plays an important role.

[More]

3 Comments to "Setting up EHCache on Railo"- Add Yours
Rob Brooks-Bilson's Gravatar That's pretty cool how Railo handles the config setup for you. Just to be clear, though, what you are doing here is configuring Ehcache for cache replication/clustering. It's not truely creating a distributed cache as any item you place in the first cache will be replicated to the 2nd cache via RMI. In a distributed cache, two or more caches work in concert to appear as a single larger cache. That's not happening here with the standard Ehcache install.

In order to do real distributed caching with Ehcache you need to install one or more copies of Ehcache server and communicate witht the cache via REST or SOAP.
# Posted By Rob Brooks-Bilson | 11/19/09 1:18 AM
Gert Franz's Gravatar @Rob:

Enter MemcacheD and EHCache remote. The current EHCache Distributed version is just one that you can replicate across a cluster. There are two additional extensions that allow you to use distributed Caches like EHCache remote or MemcacheD. We already use that for a larger customer of ours. But we still want to enhance it in order to be able to use an array of servers and have them behave as one. That can be easily done in EHCache but not in Memcached.

Please note that you can define as many caches as you like and in as many contexts as you like. The caches you use will have separate names which allow you to use functions like CacheGet() like this: CacheGet(key, "cachename"). The name of the cache is like a datasource so that you can use different implementations for them. More to come on our blog regarding this topic.

Gert Franz
Railo Technologies
# Posted By Gert Franz | 11/19/09 1:46 AM
Gary's Gravatar @Rob,

Thats correct, in this implementation it is "simply" a replication of cache across multiple machines to keep the cache well in sync :). Later we will be implementing a real distributed cache, and hence the use of the slash between distributed and replicated in my post.
# Posted By Gary | 11/19/09 2:48 AM

Powered By Railo

Subscribe

Subscribe via RSS
Follow garyrgilbert on Twitter Follow me on Twitter
Or, Receive daily updates via email.

Tags

adobe air ajax apple cf community cfml coldfusion examples ext flash flex google javascript jquery max2007 max2008 misc open source programming railo software technology ui

Recent Entries

No recent entries.

Blogroll

An Architect's View
CFSilence
Rey Bango
TalkingTree

Wish List

My Amazon.com Wish List