#Inquiry: How to Reduce Cold Start Duration in Go?

6 messages · Page 1 of 1 (latest)

vital locust
#

Hey! I was using Python for the function runtime, but after reading that Go has the fastest runtime, I switched my code over to Go. However, I'm still seeing cold start times of over 5 seconds, sometimes even more than 10. The function is really simple, just returning a hardcoded JSON response, but the cold start is still slow. Any tips on how to reduce the cold start time?

vital locust
#

it's 2.8mb

noble marlin
# vital locust it's 2.8mb

That's not too bad...maybe you can share your function and what region you're on so we can try to reproduce

#

My function that makes a network request takes 200ms on cold start

vital locust