Skip to content

Limits and Constraints

Function Deployment

LimitValueNotes
Max source package size (uncompressed)25 MBEnforced at upload time
Max files in source package500Enforced at upload time
Build timeout10 minutesBuild is polled at 5-second intervals
Supported runtimesnode, csharp

Runtime Execution

LimitValueNotes
Execution timeoutNo hard limit enforcedSubject to change
Memory allocation1 GiPer function, subject to change

Security restrictions (production only):

  • Outbound HTTP requests must use HTTPS. Plain HTTP to external hosts is blocked.
  • Direct IP addresses are blocked (prevents access to cloud metadata endpoints).
  • Internal service DNS names are blocked.
  • Localhost traffic is allowed for internal cache/secrets communication only.

Cache

LimitValueNotes
Default TTL3600 seconds (1 hour)Applied when no TTL is passed to cache.set()
Minimum TTLNo enforced minimum
Maximum TTLNo enforced maximumSubject to change
Key sizeNo enforced limitSubject to change
Value sizeNo enforced limitValues are JSON-serialized before storage
LimitValueSource
timeout (milliseconds)1000-30000Enforced in MenuBuilder.timeout()
maxDigits1-20Enforced in MenuBuilder.maxDigits()
repeats0-5Enforced in MenuBuilder.repeats()
Default timeout8000 msApplied when not explicitly set
Default repeats2Applied when not explicitly set
Default maxDigits1Applied when not explicitly set

These limits are validated at build time and throw immediately if violated.

Webhooks (Tunnel)

LimitValueNotes
Inbound request forwarding timeout30 secondsPer-request; returns HTTP 504 on timeout
Tunnel idle timeout15 minutesIdle tunnels are cleaned up automatically
Tunnel connection timeout60 minutesMaximum tunnel session duration

The tunnel gateway disconnects after 15 minutes of inactivity regardless of the overall session timeout.

API Rate Limits

Rate limits are applied per project using a sliding window. They can be overridden on a per-project basis by platform operators.

Endpoint groupDefault limitWindow
Function CRUD100 requests60 seconds
Deployments10 requests60 seconds
Configuration reads200 requests60 seconds
Secret value reads10 requests60 seconds
Log streaming (concurrent connections)5 concurrent
Operations endpoints20 requests60 seconds

All limits are subject to change.