Back

[SOLVED] Functions limits questions

  • 0
  • Self Hosted
  • Functions
Isai
8 Mar, 2023, 17:52

Hi, Im trying to figure out if I can do something with functions on appwrite, I have to download 1 list of events from an API, then do 3 calls for each event to save that information on the database, the list of events can vary from 0 to 1000, I want to write a function so they check the first point every day and updates the event list accordingly, Do you guys think it will be able to handle this ?

TL;DR
The user wants to know if they can use functions on Appwrite to download a list of events from an API and save the information on a database. The list can vary from 0 to 1000 events. The suggestion is to run the function multiple times per day, processing part of the list each time to prevent it from being killed. The solution is to break down the import and run it multiple times rather than running once a day.
Drake
8 Mar, 2023, 18:31

Yes, however, Appwrite functions should run quickly. The longer it runs, the more chance it will be killed.

One way to break down your import is to maybe instead of running once per day, to run multiple times per day and process part of the whole list each time

Isai
8 Mar, 2023, 18:38

So. Maybe have a function that splits into 100's and send that to other functions?

Drake
8 Mar, 2023, 18:47

That could work, yes

Isai
8 Mar, 2023, 18:48

Functions are can't be concurrent, I mean calling the same function will make a queue right?

Drake
8 Mar, 2023, 18:50

for now, for self hosted, out of the box, yes. you'd have to scale out horizontally to be able to execute concurrently

Isai
8 Mar, 2023, 18:51

Got it

Drake
8 Mar, 2023, 19:02

[SOLVED] Functions limits questions

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