KODO JDO分布式缓存性能如何?

发布于 2024-08-17 20:09:38 字数 414 浏览 10 评论 0原文

有谁有KODO JDO的分布式缓存机制的经验吗?我想知道:

1)分布式缓存更新之间的延迟是多少(因此,如果两个用户访问两个单独的缓存,即在两个不同的 JVM 上,并使用相同的数据,其中一个用户进行更新,那么另一个用户何时会进行更新,使用其他缓存,看到更新了吗?)

2) JVM 之间将传输多少数据?如果对一个缓存进行更新,它是否只是通过告诉其他缓存要刷新的对象的主键来告诉其他缓存删除对象? (关注的是管理分布式缓存的网络流量/开销)

3)当您全天有外部源更新数据库时(即不是通过您的应用程序进入),从外部调用缓存刷新有多容易?

我们的应用程序在 12 个 JVM 的 Weblogic 集群中运行,我们正在考虑启用分布式缓存,以帮助提高从数据库中提取的大型对象图的性能(目前尚未缓存),但我们想了解一些真实情况#1、2 和 3 的经验。谢谢。

Does anyone have experience with KODO JDO's distributed cache mechanism? I would like to know:

1) what is the latency like between distributed cache updates (so if two users are hitting two separate caches i.e. on two different JVMs and are using the same data and one makes an update, when will the other user, using the other cache, see the update?)

2) how much data will be transferred between JVMs? if an update is made to one cache, does it simply tell the other caches to drop the objects by telling it the primary keys of the objects to flush? (concern is the network traffic/overhead of managing the distributed cache)

3) when you have external feeds updating your database throughout the day (i.e. not coming in through your application), how easy is it to externally invoke a cache flush?

Our application runs in a Weblogic cluster of 12 JVMS and we are considering enabling the distributed cache to help with performance coming from large object graphs being pulled from our database -- which are currently not cached-- but would like to know some real-world experience with #1,2,and 3. Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

流年里的时光 2024-08-24 20:09:38

这是部分答案,但我相信仍然有帮助(来自 http:// /docs.oracle.com/cd/E13189_01/kodo/docs303/ref_guide_cache.html):

当与 kodo.event.RemoteCommitProvider 结合使用时,提交信息通过 JMS 或 TCP 传递到其他 JVM,并根据此信息使远程缓存失效。

没有说明这是否意味着此提交被包含为原始事务的一部分(人们希望如此)或和/或此操作的延迟时间或开销以及它的扩展程度(例如,如果您执行此操作,它会如何执行)正在协调 15 个 JVM,并且有多个用户更新相同的数据)

This is a partial answer, but I believe still helpful (From http://docs.oracle.com/cd/E13189_01/kodo/docs303/ref_guide_cache.html):

When used in conjunction with a kodo.event.RemoteCommitProvider, commit information is communicated to other JVMs via JMS or TCP, and remote caches are invalidated based on this information.

It is not stated whether this means that this commit is included as part of the original transaction (one would hope) or and/or what the lag time or overhead is with this operation and how well it scales (e.g. how does it perform if you're coordinating 15 JVMs and you have multiple users updating the same data)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文