Skip to content
Back

Inquiry: How to Reduce Cold Start Duration in Go?

  • 0
  • 2
  • Functions
  • Cloud
Irfan Ullah
6 Mar, 2026, 00:54

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?

TL;DR
User inquires about reducing cold start duration in Go functions. Function size is 2.8mb and it takes 200ms for a network request on cold start in the FRA region. Further details and possible troubleshooting needed.
6 Mar, 2026, 04:48

How big is the build?

6 Mar, 2026, 13:50

it's 2.8mb

10 Mar, 2026, 04:31

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

10 Mar, 2026, 04:33

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

10 Mar, 2026, 16:21
10 Mar, 2026, 21:34

hmm ya mine was in FRA too...

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more