Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用ehcacheas分布式ehcache。分布式我的意思是我有多个appserver,每个都有自己的ehcache,如果我在一个appserver缓存中放置/更新一个对象,所有其他缓存(在其他应用服务器中)必须自动同步/更新。 现在我不希望在某些配置中硬编码所有其他缓存的地址(主机名)。因为我可以在多个盒子中部署我的代码,并且可以随时添加新盒子,我不想修改所有机器上的配置文件。 我可以远程拉取配置文件吗?我可以以 IP 范围的形式添加服务器列表吗?还是网络主机类?
如果您不想自己实现它,请考虑使用Terracotta 。你可以在这里找到一个样本。