从一些地方读取,表明mapstore和maploader必须与Hazelcast节点一起运行。想了解是否有任何方法可以实现与Hazelcast节点分开的mapstore / maploader?
背景: 如果我有团队的hazelcast集群,并且该集群将由不同的子团队使用,提供不同的地图作为数据,并且每个子团队应该为他们拥有的地图实施mapstore / maploader,如何做到这一点? (请注意,每个子团队都有自己的SVN存储库)
提前致谢〜
答案 0 :(得分:0)
MapLoader's load()
operation is only invoked on the node that would have the key when the key is missing, so there is no way to push this processing elsewhere.
However, each map can have a different MapStore/MapLoader implementation, so having a different team provide each is certainly feasible.
Exactly how you achieve this comes down to your build and deploy practices. For example, each team's classes could be in a separate jar file on the classpath. Or, there could be a single jar file constructed containing the classes provided by each team. Many ways exist!