Skip to content

Commit 3556ccf

Browse files
Merge pull request #56 from DBB-Software/chore/PLATFORM-1966-docs
chore: updated chart with dynamodb and removed response origin lambda
2 parents 6f63c97 + a9f6797 commit 3556ccf

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ sequenceDiagram
9999
participant User
100100
participant CloudFront
101101
participant Request Origin Lambda@Edge
102-
participant Response Origin Lambda@Edge
103102
participant S3Bucket
103+
participant DynamoDB
104104
participant ElasticBeanstalk with Load Balancer
105105
106106
%% Flows
@@ -110,17 +110,15 @@ sequenceDiagram
110110
Request Origin Lambda@Edge ->> S3Bucket: Sends Head request to check if file exists in S3
111111
alt File exists in S3
112112
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
120117
else File does not exit
121118
Request Origin Lambda@Edge ->> ElasticBeanstalk with Load Balancer: Sends request to render page when it does not exist in S3
122119
ElasticBeanstalk with Load Balancer ->> CloudFront: returns generated page
123120
ElasticBeanstalk with Load Balancer ->> S3Bucket: stores generated page
121+
ElasticBeanstalk with Load Balancer ->> DynamoDB: stores page cache metadata
124122
end
125123
CloudFront ->> User: returns page result
126124
```

0 commit comments

Comments
 (0)