English 中文(简体)
第2级切除方案
原标题:hibernate distributed 2nd level cache options

不是真正的问题,但我不希望任何有以下一个或多个经验的人发表意见/建议:

  • EhCache with RMI
  • EhCache with JGroups
  • EhCache with Terracotta
  • Gigaspaces Data Grid

背景情况:我们的申请大多只读到,但有一些用户数据是读写的,有些只是书面的(也可能是相当不准确的)。 此外,我们还必须拥有各种工具,使我们能够在间隔或行政干预下 flu积和填充海滩。

关于第一种选择——是否对海事和海事局的间接费用和 Java序列化的业绩有任何关切?

最佳回答

I m working with EhCache for Hibernate and for application level cache since 3 years ago. We use it with RMI for cache invalidation and it works really good. If you use the cache for replication you should take care about the object graph, it could turn very heavy with high cardinality relations.

If you use EhCache for Hibernate you could use it for Query cache (it s a good improvement for read-only tables) and it the table is modified it cleans the cache automatically. Using EhCache to cache collections is a good idea too, to avoid joins a sub-selects.

为了及时清理藏匿处,你可以把清理藏匿处的藏匿点延伸到EhCache。 我们这样做,它运作良好。

问题回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签