群集共享缓存 [英] Cluster Shared Cache

查看:63
本文介绍了群集共享缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个Java框架,该框架将允许我在多个JVM之间共享缓存。

I am searching for a java framework that would allow me to share a cache between multiple JVMs.

我需要的是类似 Hazelcast ,但没有分布式部分。我希望能够在缓存中添加一个项目并将其自动同步到其他组成员缓存。如果可能的话,我希望通过可靠的多播(或类似方式)同步缓存。

What I would need is something like Hazelcast but without the "distributed" part. I want to be able to add an item in the cache and have it automatically synced to the other "group member" cache. If possible, I'd like the cache to be sync'd via a reliable multicast (or something similar).

我查看了 Shoal ,但遗憾的是,分布式状态缓存似乎不足以满足我的需求。

I've looked at Shoal but sadly the "Distributed State Cache" seems like an insufficient implementation for my needs.

我看过 JBoss Cache ,但是对于我需要做的事情来说似乎有些矫kill过正。

I've looked at JBoss Cache but it seems a little overkill for what I need to do.

我看过 JGroups ,这似乎是我需要做的最有前途的工具。有没有人有使用JGroups的经验?最好将其用作共享缓存?

I've looked at JGroups, which seems to be the most promising tool for what I need to do. Does anyone have experiences with JGroups ? Preferably if it was used as a shared cache ?

还有其他建议吗?

谢谢!

编辑:我们正在开始测试以帮助我们在Hazelcast和Infinispan之间做出选择,我将很快接受答案。

EDIT : We're starting tests to help us decide between Hazelcast and Infinispan, I'll accept an answer soon.

编辑:由于需求的突然变化,我们不再需要分布式地图。我们将使用JGroups进行底层信令框架。谢谢大家的帮助。

EDIT : Due to a sudden requirements changes, we don't need a distributed map anymore. We'll be using JGroups for a low level signaling framework. Thanks everyone for you help.

推荐答案

经过更多搜索后,我发现> JGroup的ReplicatedHashMap 。它尚未经过全面测试,但似乎是一个不错的开始。它满足了我的所有要求,而没有给我太多不必要的功能。它也非常灵活。我仍然在寻找完美的答案:)

After some more searching, I found JGroup's ReplicatedHashMap. It has not been thoroughly tested but it seems like an excellent start. It fills all my requirements without giving me too much features I don't need. It's also quite flexible. I'm still searching for the "perfect" answer though :)

感谢您的回答。

这篇关于群集共享缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆