title: Microservices - should there be multiple instances of the same service?
body: <p>I've been doing some research on microservices, and one question I've had that is not well addressed is whether there should be multiple instances of a microservice, and if so, how to deal with this?</p>
  <p>Suppose I have a  microservices called filewatcher which fetching file from some shared drive here from FEED folder and create a record in table and send the payload message to kafka.</p>
  <p>Here if multiple instance of filewatcher service running on different server (logical or physical server) and fetching file from same location than it will create the duplicate records.</p>
  <p>Here I have already implemented validation from db side . But I am looking for some architectural solution. What is why filewatcher service read duplicate file from FEED folder.</p>
  <p>I think @Transactional from spring boot that will resolve the transaction issue. It is not resolving the duplicate file upload issue.</p>
  <p>How to handle this scenario?</p>