With regard to spring integration, how to horizontally scale file polling?
Suppose, a file poller is set for 5s to pick .tif files, and spring integration code as a boot project is running on one server. The preventDuplicate() is in effect for the file poller.
What would happen if another server is deployed with same code?
In case file is polled by both servers, one after the other, the same file is processed twice, how to prevent it? What are the best methods to scale in this scenario?