简体   繁体   中英

How does the data packet flow work between S3 and cloudfront in AWS when S3 object is access/updated by multiple regions?

S3 bucket on Region 1 and use cloud front service 1. from Region 2 user pull the file from the s3 bucket first time through the edge server make some changes and upload. 2. After that a user from Region 1 makes changes to the same file in bucket and upload the changes. Now users from Region 2 again pull the file from s3 bucket, how does the data packet flow work? does the edge work check with the main server (s3 bucket )at the time requested by Region 2 user or the cached file on the edge server is automatically updated?

CF does not check whether your original S3 object has been updated or not. Cached objects stay in CF for as long as they are valid or CF deems them as not popular enough to keep them.

If you want to force CF do discard old files and start using new ones you have to invalidating your files yourself, or use any of the recommended strategies for managing that, such as using versioned file names .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM