"genman" wrote : I figured out how to optimize it, though there are race
conditions when sharing caches, but the whole thing is full of potential race conditions.
:-)
|
You could mitigate some race conditions by using the StripedLock class in the cache
loader, but this will only prevent races on the cache loader on a single instance. In a
cluster, we'd need some sort of distributed locking to do this - either that, or for
S3 to support transactions. :-)
"genman" wrote :
| By the way, to test the darn thing, you have to have an Amazon S3 account.
|
Hmm, a good reason then to have the tests disabled by default for automated test runs,
etc.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127389#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...