Back

[Question] Creating a custom REST Api

  • 1
  • Self Hosted
  • Web
gaurav_ch
13 Jun, 2024, 05:19

Hi, this is a question rather than support. I used appwrite to create an education tech platform. However, there are some apis I need to expose for people to build on top our functionality. If I create a function and add the routes in that, will appwrite functions time out as usual or they will execute properly? By timing out I mean that dreaded 30 seconds hard limit.

TL;DR
- Developer wants to create a custom REST API using Appwrite. - Function timeout limit can be edited in Appwrite. - To increase the timeout limit beyond 900 seconds in a self-hosted environment, modify the `.env` file and restart the Appwrite stack. - Question: Will Appwrite functions time out as usual if routes are added for the custom API?
darShan
13 Jun, 2024, 05:49

Its not a hard limit, you can edit those settings. Go to Functions > Settings Tab > Scroll to Timeout settings. Max, afaik is 900 seconds, but since you are self-hosted, you can increase the timeout via the .env file and restart the appwrite stack.

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