I have a pipe-like process that is made of micro services. Each service is responsible of reading files from an input folder, creating new files in an output folder and deleting the old ones.
Suppose I want to scale one of the services up, How do I avoid concurrency trouble?