Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache S3 includes locally #93

Open
adamchainz opened this issue Jan 25, 2018 · 0 comments
Open

Cache S3 includes locally #93

adamchainz opened this issue Jan 25, 2018 · 0 comments

Comments

@adamchainz
Copy link
Contributor

Following #91 , it would be nice to add some caching. When using an include the file is fetched from S3 every time, so running lots of commands under treehugger means lots of network traffic to S3. Since we only support versioned S3 URL's they are guaranteed to not change, so we could cache them indefinitely in a 'treehugger' app dir to improve the launch time for 'treehugger exec'.

That said, treehugger does have to talk to KMS for every encrypted variable, so it's only saving one of several network hops. However KMS is a faster and less variable than S3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant