Skip to content
Back

Function Performance / Concurrency / Throughput - Timeout issues

  • 0
  • Self Hosted
  • Functions
  • Web
  • REST API
Orion
1 Nov, 2024, 16:36

Hi,

I have created a function that acts as an upsert endpoint (domain) which is expected to receive a large amount of requests. It seems that after a certain point, all requests begin to timeout (30 second timeout set). If a request to a function is in the process of timing out, does this mean all other requests hang, waiting for the timeout to occur, before other requests are processed?

Is there a way to improve concurrency or throughput with functions? I'm trying to process over 1000 requests per minute.

I'm using the nodejs runtime.

Thanks.

TL;DR
Function acting as upsert endpoint encountering timeout issues when processing large numbers of requests. Queries timing out after a certain point might cause other requests to hang. Developers wondering if envars being defaulted to "0" affects limits. Seeking ways to improve concurrency and throughput to handle over 1000 requests per minute. Using nodejs runtime.
Orion
1 Nov, 2024, 16:38

Follow-up question, the docs say that if function envars are empty, it will disable limits. It seems at some point mine were defaulted to "0", is this considered empty?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more