Best way to use SFTP folder as concurrent work queue

Posted by Gabe Moothart on Stack Overflow See other posts from Stack Overflow or by Gabe Moothart
Published on 2010-04-06T14:49:21Z Indexed on 2010/04/06 14:53 UTC
Read the original article Hit count: 260

Filed under:
|
|

I am writing a c# windows service which will be polling an SFTP folder for new files (one file = one job) and processing them. Multiple instances of the service may be running at the same time, so it is important that they do not step on each other.

I realize that an SFTP folder does not make an ideal queue, but that's what I have to work with. What do I need to do to either use this SFTP folder as a concurrent message queue, or safely represent it in a way that can be used concurrently?

© Stack Overflow or respective owner

Related posts about c#

Related posts about sftp