Java oracle一致性的开源替代品?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2163410/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
open source alternatives to oracle coherence?
提问by Blankman
Are there any open source alternatives to oracle coherence?
oracle 一致性是否有任何开源替代方案?
(btw, how much does coherence cost anyways?)
(顺便说一句,无论如何,一致性的成本是多少?)
采纳答案by Kevin
回答by Pascal Thivent
JBoss Cacheand EHCacheare decent clustered cache solutions. But none of them have all the features and a nice admin console like TangosolOracle Coherence which is indeed the most advanced product in this category. For the price, there is a "Buy Now" button on the right of the Oracle Coherenceweb page.
JBoss Cache和EHCache是不错的集群缓存解决方案。但是它们都没有像TangosolOracle Coherence 这样的所有功能和不错的管理控制台,这确实是该类别中最先进的产品。对于价格,Oracle Coherence网页右侧有一个“立即购买”按钮。
回答by kevink
I have been watching for a good alternative also. The closest overall in features I have found are Terracottaand Redisbut it would be helpful to know what aspects of Coherence are important to your project.
我也一直在寻找一个好的选择。我发现的最接近的整体功能是Terracotta和Redis,但了解 Coherence 的哪些方面对您的项目很重要会很有帮助。
回答by Talip Ozturk
Hazelcastis an open source, transactional, distributed caching solution for Java. It is released under Apache license.
Hazelcast是一个开源的、事务性的、分布式 Java 缓存解决方案。它是在 Apache 许可下发布的。
Hazelcast is actually a little more than a distributed cache; it is distributed implementation of queue, topic, map, multimap, lock, executor service for Java.
Hazelcast 实际上只是一个分布式缓存;它是 Java 的 queue、topic、map、multimap、lock、executor 服务的分布式实现。
回答by Kango_V
Infinispan is looking promising.
Infinispan 看起来很有希望。
回答by karthik
回答by Nick
I have been investigating open source distributed caches and have focused on EHCahe and JBoss Pojo Cache.
我一直在研究开源分布式缓存,并专注于 EHCahe 和 JBoss Pojo 缓存。
They are both decent products, however the deal breaker is that my use case requires me to distribute an object graph and maintain shared references on all my nodes. EHCache cannot handle this. It uses standard java serialisation, and as such, shared references are lost.
它们都是不错的产品,但是交易破坏者是我的用例要求我分发对象图并在我的所有节点上维护共享引用。EHCache 无法处理这个。它使用标准的 java 序列化,因此,共享引用丢失。
e.g. if I have manager/employee object hierarchy, i want a single 'manager' object on all my nodes, with references to their employees. With EHCache, I dont get this, as the java serialiser copies all dependent objects. With JBoss Pojo Cache, my object graph is preserved.
例如,如果我有经理/员工对象层次结构,我希望所有节点上都有一个“经理”对象,并引用他们的员工。使用 EHCache,我没有得到这个,因为 java 序列化器复制所有依赖对象。使用 JBoss Pojo Cache,我的对象图得以保留。
The downside is that JBoss needs to instrument your classes (the primitives that make up your object graph are stored in a tree structure behind the scenes). This can cause some issues when running in an OSGi environment.
缺点是 JBoss 需要检测您的类(构成对象图的原语存储在幕后的树结构中)。在 OSGi 环境中运行时,这可能会导致一些问题。
JBoss uses JGroups as its communication stack, you can choose between multicast or TCP/IP to manage communication between the nodes.
JBoss 使用 JGroups 作为其通信堆栈,您可以选择多播或 TCP/IP 来管理节点之间的通信。
Hope this helps.
希望这可以帮助。
回答by Santoash Candar Rajaram
Project Voldemortis great (free) alternative to coherence.
伏地魔项目是一致性的绝佳(免费)替代方案。
回答by AZ_
Looks promising as Google used them in their own products
看起来很有希望,因为 Google 在自己的产品中使用了它们
回答by Puru
Check for "Berkeley DB" which is a open source and works same as Coherence
检查“Berkeley DB”,它是一个开源的并且与 Coherence 的工作原理相同