Is there a limit to how many functions a site may have?

I’m building a site with lots of tools on it — each tool will have a fallback serverside option for people with JavaScript disabled. Some of these will be automatically generated and there could be many thousand.

Just wondering if there’s a limit to the number of functions a site can have, or if there’s a technical limit i might bump up against?

Are you talking about Netlify (Serverless) Functions? It’s not possible to dynamically generate those without having a full re-deploy.

But there’s no limit to number of functions, just the pricing is based on invocation count.

Hi thanks, good to know!

I’m not really generating them dynamically — just creating them with a script — so i can use the same code for the client side and the server side — a lot of the tools are basically the same thing with a slight change.

hey @hrishikesh, i plan on using netlify functions to query a vector database, is it better to use edge or serverless functions?
estimated time of execution is gonna be about 3s

Either is fine. If you heavily depend on NPM packages, Functions might work better for now.