ByteChef LogoByteChef
Embedded

Limits and Concurrency

Reference for the execution limits that apply to an embedded deployment, and the per-customer limits you enforce outside ByteChef.

All connected users of an embedded deployment run their workflows on the same ByteChef engine. The engine applies deployment-wide concurrency limits and timeouts. It does not apply limits per connected user or per tenant.

Deployment-wide limits

These limits apply to all workflow runs on a node, regardless of which connected user started them. Configure them with environment variables on the ByteChef server.

LimitEnvironment variableDefaultBehavior when reached
Concurrent workflow tasksBYTECHEF_WORKER_TASK_SUBSCRIPTIONS_DEFAULT10Further tasks wait for a free slot.
Concurrent synchronous executionsBYTECHEF_WORKER_TASK_SYNC_CONCURRENCY_LIMIT5Further synchronous callers wait for a free slot.
Task timeoutBYTECHEF_WORKER_TASK_DEFAULT_TIMEOUT24 hoursThe task fails. A task's own timeout parameter overrides the default.
Polling trigger intervalBYTECHEF_COORDINATOR_TRIGGER_POLLING_CHECK_PERIOD5 (minutes)Polling triggers check for new data at this interval.
Request trigger wait-5 minutesThe run is marked failed and the caller receives an error. See Request Triggers.
External invocation log retentionBYTECHEF_EXTERNAL_INVOCATION_LOG_RETENTION_DAYS90 (days)Older external invocation records are deleted.

For the full list of server settings, see Environment Variables.

Limits that are not enforced

ByteChef does not limit, per connected user or per tenant:

  • the number of API requests, App Events or Request trigger calls;
  • the number of workflow runs, or how many run at the same time;
  • the execution time a connected user's workflows consume.

Connected users therefore share worker capacity. A connected user who starts many runs increases the queue time of other connected users' runs. Data stays isolated: a run cannot read another tenant's data, connections or execution history. See Tenant-isolated security.

Enforcing per-customer limits

Apply per-customer limits in your own application, before requests reach ByteChef.

ControlWherePurpose
Rate limit per customerYour API gateway or backendCaps calls to the embedded API for each customer. Your gateway identifies the customer before ByteChef does.
Throttle App EventsYour backendEach App Event starts every workflow subscribed to it for that connected user, so one event can start several runs.
Bound workflow workWorkflow designUse pagination and batch sizes in components so that one run does not process an unbounded data set.
Monitor volume per customerWorkflow ExecutionsExecutions are attributed to connected users, so you can identify the customers that generate the most load.

Use asynchronous triggers (App Events, webhooks, polling or scheduled triggers) for workflows that loop over large data sets or call slow providers. A Request trigger with Await Workflow and Respond holds the HTTP connection open until the workflow finishes, up to the 5-minute limit.

Plan limits

Coming soon

Per-tenant plan limits are not available. A deployment has no per-tenant rate, concurrency, cost or quota limits.

Plan limits add per-tenant enforcement: rate limits, a maximum number of concurrently running jobs, a monthly cost cap, and quotas for workspaces, members and storage. Rate and concurrency rejections return HTTP 429 with a Retry-After header. Quota rejections return HTTP 403. Self-hosted deployments default to no limits. See Plan Limits.

How is this guide?

Last updated on

On this page