We have a clustered environment where same camel ftp endpoint is installed on multiple fuse instances. I want message(file) to be consumed by only one fuse instance. I am planning to achieve this by implementing IdempotentRepository interface with database persistence. Want to make sure that this approach will work or there is a better way to do it?
问问题
265 次
1 回答
0
如果您不想依赖数据库来执行此操作,可以尝试使用 Hazelcast。Hazelcast 是一种分布式数据缓存,可以用作幂等存储库,无需外部依赖。此外,Apache Camel 提供了一个用于执行此操作的类。有一个很好的教程解释了如何做到这一点:Hazelcast Idempotent Repository Tutorial
于 2013-12-17T00:47:01.880 回答