【问题标题】:DistributedMap as cache clustered with TerracottaDistributedMap 作为使用 Terracotta 集群的缓存
【发布时间】:2023-03-21 01:33:02
【问题描述】:

When choosing suitable cache implementation to be clustered with Terracotta I've run into separate Terracotta Integration Module named DistributedMap wich provides basic caching abilities such as support for different eviction policies etc. This cache implementation seems to be easy configurable, but when it谈到生产就绪集群,我发现我需要找到一些问题的答案: 1. 有没有人用过这个TIM,有没有人用过这个TIM?有什么谬误吗? 2. DistributedMap 很容易配置,但是下一个场景怎么样:如果我们启动 2 个 Terracotta 客户端并且每个客户端的 DistributedMap 配置不同。 Terracotta 服务器会更新由 client1 提供的现有配置还是保持不变。

【问题讨论】:

    标签: scalability terracotta


    【解决方案1】:

    我今天刚刚与一位在生产中使用 DistributedMap 的客户进行了交谈。

    至于配置 - 我相信配置包含在实例中。由于 DistributedMap 不包含共享状态会与另一个实例重叠的任何根,因此每个实例将彼此分离(这意味着您可以制作任意数量的独立 DistributedMap)。

    请注意,除非您通过将 DistributedMap 添加到共享图来使其集群化,否则它并不会真正集群化。这可以通过将其添加到已经集群的 POJO(您自己创建的,或者例如已经集群的 HashMap)或将其标记为根(一种常见的方法,docs 建议的方法)来完成。

    【讨论】:

      猜你喜欢
      • 2012-11-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-15
      • 2016-06-08
      • 2018-06-29
      • 2020-12-01
      相关资源
      最近更新 更多