File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -99,8 +99,8 @@ sequenceDiagram
99
99
participant User
100
100
participant CloudFront
101
101
participant Request Origin Lambda@Edge
102
- participant Response Origin Lambda@Edge
103
102
participant S3Bucket
103
+ participant DynamoDB
104
104
participant ElasticBeanstalk with Load Balancer
105
105
106
106
%% Flows
@@ -110,17 +110,15 @@ sequenceDiagram
110
110
Request Origin Lambda@Edge ->> S3Bucket: Sends Head request to check if file exists in S3
111
111
alt File exists in S3
112
112
Request Origin Lambda@Edge ->> S3Bucket: Forwarding request to S3 origin
113
- S3Bucket ->> Response Origin Lambda@Edge: lambda edge listener
114
- Response Origin Lambda@Edge ->> CloudFront: returns result from s3 origin
115
- alt File is expired in S3
116
- Response Origin Lambda@Edge ->> CloudFront: sets cache header to no-cache to avoid caching of stale data
117
- else
118
- Response Origin Lambda@Edge ->> CloudFront: forwards request from S3 origin
119
- end
113
+ else File exists in S3 but is expired
114
+ Request Origin Lambda@Edge ->> ElasticBeanstalk with Load Balancer: Forwarding request to render server
115
+ ElasticBeanstalk with Load Balancer ->> S3Bucket: stores generated page
116
+ ElasticBeanstalk with Load Balancer ->> DynamoDB: updates page cache metadata
120
117
else File does not exit
121
118
Request Origin Lambda@Edge ->> ElasticBeanstalk with Load Balancer: Sends request to render page when it does not exist in S3
122
119
ElasticBeanstalk with Load Balancer ->> CloudFront: returns generated page
123
120
ElasticBeanstalk with Load Balancer ->> S3Bucket: stores generated page
121
+ ElasticBeanstalk with Load Balancer ->> DynamoDB: stores page cache metadata
124
122
end
125
123
CloudFront ->> User: returns page result
126
124
```
You can’t perform that action at this time.
0 commit comments