How do I handle this scenario:
A web service will receive data and write to a file on a network share.
Another application is running as a service that checks for files, reads the data, processes, saves the data to a database then deletes the file.
This application must run in multiple data centers and on multiple servers in each data center. How do I ensure that each file is processed