Spring SFTP read file lock

2019-09-08 10:27发布

I have configured Spring integration SFTP application to poll file from remote server, and it's working fine if it's running one, where if the same application run's 3 time, to process the files faster, in such case same file is polled by two application's and resulting in duplicate results. how can i avoid this? is there any file locking available in Spring integration?

for configuration part you can look through this SO

1条回答
Deceive 欺骗
2楼-- · 2019-09-08 11:18

You need to use persistent file list filters together with a shared metadata store - e.g. Redis see the documentation.

This question has a similar setup for FTP.

查看更多
登录 后发表回答