How do I lower my Vercel Function execution time?

Learn how to lower your Serverless Function execution time.
Last updated on February 4, 2025
Functions

If your Vercel Functions are timing out, we recommend enabling Fluid compute.

Fluid, which is our new execution model for Vercel Functions, has the following benefits:

  • The default function timeout is higher
  • The max duration functions can run is longer (up to 800s on Pro)
  • It's a more cost-effective model for functions with network I/O (like database calls)
  • Ensure your function region region is the same as your data source(s)
  • Explore caching the function responses (or upstream calls to external APIs)
  • Explore request latency to external APIs in the Observability tab

You can view your Function performance and other metrics with Observability.

Couldn't find the guide you need?