Skip to content

Improving cold start times #115

Answered by metaskills
nitsujri asked this question in Q&A
Jan 22, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

and then attached a bunch of puts w/ the CloudWatch logs

Pro move! Love me some puts :)

The app seems to initialize twice.

Yup, the whole init phase has a timeout of 10s. What is likely happening is that "Function init" phase is being called twice because the first one timed out. The second time is faster because files have already been required, etc. I've seen this before in some edge cases in our functions but it happened so infrequently given our apps init ~3-5s. Some helpful links here on the topics.

Any recommendations, tips? Thanks again!

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@nitsujri
Comment options

@metaskills
Comment options

Answer selected by nitsujri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants