Skip to content

Commit 4d62600

Browse files
committed
docs: Update architecture
1 parent a5dacaf commit 4d62600

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ The Next.js Terraform module is designed as a full stack AWS app. It relies on m
6464

6565
This is a second CloudFront distribution that serves a special JSON file that the Proxy ([`III`](#III-lambda-edge-proxy)) fetches as configuration (Contains information about routes).
6666

67+
- **CloudFront Invalidation Queue**
68+
69+
When updating the app, not the whole CloudFront cache gets invalidated to keep response times low for your customers.
70+
Instead the paths that should be invalidated are calculated from the updated content.
71+
Depending on the size of the application the paths to invalidate could exceed the [CloudFront limits](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html#invalidation-specifying-objects%23InvalidationLimits) for one invalidation.
72+
Therefore invalidations get splitted into chunks and then queued in SQS from where they are sequentially sent to CloudFront.
73+
6774
## Usage
6875

6976
### Add to your Next.js project

docs/assets/architecture.png

21.8 KB
Loading

0 commit comments

Comments
 (0)