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

Refactor Cloudfront cache invalidation logic #70

Open
mdial89f opened this issue Oct 3, 2020 · 0 comments
Open

Refactor Cloudfront cache invalidation logic #70

mdial89f opened this issue Oct 3, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@mdial89f
Copy link
Contributor

mdial89f commented Oct 3, 2020

Currently, on deployment, the entire ui cloudfront distribution is invalidated. So we upload our static archive to s3, then invalidate the whole cache.

This should be refactored; the suggested way is:

Create a lambda to do individual object invalidations. Set that lambda to trigger on each new or updated file in the s3 bucket via an s3 event. That lambda invalidates that object. So only the objects that need to be invalidated are. And, the pipeline can quit concerning itself with invalidations.

AC:

  • The cache invalidation is handled by S3 events + lambda, making it that only the objects that need invalidation on each deploy are invalidated
  • The current invalidation logic run by the CI system is removed
@mdial89f mdial89f moved this from To do to Backlog in macpro-quickstart-serverless Mar 18, 2021
@mdial89f mdial89f moved this from Backlog to To do in macpro-quickstart-serverless Mar 18, 2021
@mdial89f mdial89f added the enhancement New feature or request label Apr 1, 2021
@mdial89f mdial89f moved this from To do to Proposed in macpro-quickstart-serverless Apr 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

1 participant