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

Warming endpoints considers dynamo setup now #379

Merged
merged 3 commits into from
Mar 17, 2020
Merged

Conversation

john-andrews12
Copy link
Contributor

Summary

From this discussion it appears that the first connection to other services is slow due to ssl setup. For this reason I've added code that pings all of the dynamodb tables. This way, when we need something meaningful from the dynamodb, the connection will be ready to go.

Testing

For testing, I updated the warming endpoints cloudwatch rule with one of my past tokens. This way our connection to verify tokens is setup. In addition, I looked at the live logs to make sure the warming endpoint wasn't causing any errors. In addition to that, I uploaded to my dev lambda and ran the input from the cloudwatch event and I got a success result.

Copy link
Contributor

@joshrap67 joshrap67 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's hope this defeats the cold starts for good

@john-andrews12 john-andrews12 merged commit c4bef60 into master Mar 17, 2020
@john-andrews12 john-andrews12 deleted the warming branch March 25, 2020 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants