So I decided to use EFS as a shared filesystem for my EC2 instances. Our microservices, which are deployed on different instances, need to read and write to a shared space. One service basically puts the file to the known location, and the second service accesses it.
Now after reading the documentation and doing some tests myself I realized how latencies work and that files may already exist on disk but not be fully written yet. Are there any mechanisms to check when files are done replicating? My second service would need to know when the file isn't corrupt anymore.