Skip to content

Commit

Permalink
BRS-449: Adding missing dependancy (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
danieltruong authored Mar 17, 2022
1 parent 976c9d9 commit 9505847
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lambda/warmUp/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
This function utilizes threading generate concurrent calls to a given function.

## Issue
In the case of DUP, we often get high ammounts of traffic at 7AM. This is because 7 AM is when people are allowed to book passes. Since we received this wave of users at the same time, some people reported communication errors with our servers. This is because Lambda takes time to automatically spin up instances to handle load.
In the case of DUP, we often get high amounts of traffic at 7AM. This is because 7 AM is when people are allowed to book passes. Since we received this wave of users at the same time, some people reported communication errors with our servers. This is because Lambda takes time to automatically spin up instances to handle load.

## Solution
One part of the solution was to create a way to warm up relevant Lambda functions prior to spikes in traffic. This function allows us to do that. The following functions have been equiped with a warm up break out:
Expand Down Expand Up @@ -61,4 +61,4 @@ At the moment, we have EventBridge invoke the warm up function at 6:57 AM, 6:58
"delay": 1000,
"log": true
}
```
```6bdd35ae5ec2ae2ffcaa700415d7618e9437a1b6
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"jsonwebtoken": "^8.5.1",
"jwks-rsa": "^2.0.5",
"node-jose": "^2.0.0",
"svg-captcha": "^1.4.0"
"svg-captcha": "^1.4.0",
"uuid": "^8.3.2"
},
"devDependencies": {
"@aws-sdk/client-dynamodb": "^3.44.0",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8468,7 +8468,7 @@ uuid@^3.0.0, uuid@^3.3.2, uuid@^3.3.3, uuid@^3.4.0:

uuid@^8.3.2:
version "8.3.2"
resolved "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==

v8-to-istanbul@^8.1.0:
Expand Down

0 comments on commit 9505847

Please sign in to comment.