I Have a file in CDN and I need a local copy of it in all of my EC2 instances. I like to set a TTL on the local copy of 5 minute, and have one of the following:
- Have it Fetch automatically as soon as the TTL expires.
- Have it delete automatically, and next time I want the file if it doesn't exist I fetch it.
I need to access the file probably more than once a minute, so I'm thinking #1 is a better option.
What are some technologies I can use either open source or AWS to have a TTL on a file and achieve the above? Are there any other suggestions about my design?