Published On: January 22nd, 2023Categories: AI News



Introduction

In the 5th part of the series we discussed a huge impact of priming for our scenario. During priming we invoke the DynamoDB Client getItem method which forced Jackson Marshallers to initialize which is quite expensive one time operation for the life cycle of the Lambda function. Only because of this optimization we observed a huge decrease (up to 900 miliseconds) of the cold start times for all scenarios. But this made me think: can we optimize it any further? In case of using the frameworks like Micronaut, Quarkus and especially Spring Boot we still observed bigger cold start times (especially at p90s) comparing to using the pure Lambda solution. This is because of the translation layer (aka proxy) between the programming model of the used framework and Lambda itself. In case of Spring Boot reflection adds on cold start additionally. So I wanted to figure out if I can use priming to make the faked request invocation and preload and prewarm…

Source link

[gs-fb-comments]

Leave A Comment