Functions Limits

Functions are blocks of code that run on demand without the need to manage any infrastructure. Develop on your local machine, test your code from the command line (using doctl), then deploy to a production namespace or App Platform — no servers required. Learn more about functions.

  • You may have up to 10 namespaces.

  • Namespaces have the following limits:

    • Up to 120 concurrent functions

    • Up to 600 invocations per minute

    • Up to 256 KB of logs per invocation

    • Up to 7 days of log retention

  • Functions have the following limits:

    • The maximum execution duration is 30 seconds each for initialization and function execution.

    • The maximum size of input parameters is 1 MB.

    • The maximum size of result responses is 1 MB.

    • The maximum size of artifacts is 48 MB.

    • Memory is limited from 128 MB – 1 GB, defaulting to 256 MB.

  • You cannot edit multi-file functions in the control panel.

  • We do not currently support scheduled function triggers.

  • While Functions can forward console and error logs to a third-party logging service, it currently only supports Logtail and Datadog. For Logtail, create an HTTP source and use the generated token for the configuration.

  • We do not support trusted sources with MongoDB.

  • We do not support PostgreSQL connection pools.

  • We do not support trusted sources with the Node.js 14 runtime. As a workaround, use the Node.js 18 runtime.