I want to develop a microservice (preferably using Spring!) that monitors a requested directory on FTP server. The input params for the service are - ftp server, credentials for connection and directory path to be monitored.
The service could receive multiple requests and will be monitoring the requested assets for changes.
The questions are -
-
For scalability, there might be multiple instances of this service running and sharing the load among them. Each service instance will have its own state [assets under active monitoring]. If any of the service instances fail, how to transfer the state to another instance?
-
How to make this service resilient? If all service instances fail, how to re-launch the service with the last known state?
Thanks in advance, Nirav
Aucun commentaire:
Enregistrer un commentaire