Eliminate Functions Cold Start

Hi, @giuseppe-oriumnetwor!

Cross-posting this from another thread, which may be helpful:

I asked v0 on specific recommendations, and it recommended the following:

  1. Consider implementing module caching in your main.ts
  2. Use lazy loading for non-critical modules
  3. Minimize your dependency tree

The old approach of using cron jobs to prevent spin-down isn’t recommended anymore, as Vercel has made significant improvements to function performance, including Rust-powered functions and bytecode caching.

Hope that helps!

2 Likes