I have a Java based CRUD service which allows creation, retrieval, update and delete of files on/from the filesystem. This service can be deployed in a clustered environment.
- Are there any design patterns or solutions which can help sync these files between the nodes in a cluster?
- Can the folders be configured for sync?
- Is there a chance (e.g. in case of an update) that a user on one node will not get the updated file?
I am fine with solutions that are tomcat, websphere or weblogic specific.
Thank you.
Unless you specifically want to code this yourself, why not use a distributed file system like NFS or, if you would like something Java-based, the Hadoop Distributed File System (HDFS) instead. More information can be found here.