Skip to content

Reduce Powertools Cold Start Impact #1907

Closed Pinned Answered by heitorlessa
barreeeiroo asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @barreeeiroo - that's unusual, at most, AWS SDK would incur ~200ms for creating a SDK Client + TLS Handshake (Session creation), though I've seen north of 300 lately if using a newer SDK version.

X-Ray SDK will add at worst 300-400ms (uses AWS SDK + some non-optimised path).

This should be amortised by a warm start. Higher memory functions have a lower cold start because of the CPU Slicing Lambda does, so you have more room for cryptography operations AWS SDK and TLS require -- Lambda PowerTuning can be a pragmatic way to find what optimum looks like.

Powertools being a thin wrapper, specially in Parameters, it'll only inherit what SDK and X-Ray does, and slow down on call stacks and …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@heitorlessa
Comment options

@barreeeiroo
Comment options

@barreeeiroo
Comment options

@barreeeiroo
Comment options

Answer selected by barreeeiroo
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