Back

[SOLVED] functions are executed in one thread or (is/can be configured) multithreading?

  • 0
  • Self Hosted
  • Functions
jekalat
22 May, 2023, 16:10

Hi all!

Functions in appwrite are executed in one thread or (is/can be configured) multithreading?

Thank you!

TL;DR
The functions in appwrite can be configured to run in multithreading, allowing parallel execution. By default, appwrite will use all CPU cores. However, if the functions are triggered server-side, they will not run in parallel to avoid conflicts. There is currently no specific configuration option available to decide between single or multithreading.
Vedsaga
22 May, 2023, 16:13

rn I guess it's one thread, I might be wrong... config that propbely not possible if it happens it happens by default config for deciding single or multi not possible yet

D5
22 May, 2023, 16:16

Ignore what I've said

D5
22 May, 2023, 16:18

If triggered from client-side, functions run in parallel. If it's triggered server-sided, it's not run in parallel, because it could cause conflicts while doing the same operations

D5
22 May, 2023, 16:22

I think what you understand with multi-tread is basically that, parallel execution

D5
22 May, 2023, 16:22

If you mean using all CPU cores, yes, by default it should use all of them too

jekalat
22 May, 2023, 17:23

@D5 Now everything is clear. Thanks a lot!

jekalat
22 May, 2023, 17:27

[SOLVED] functions are executed in one thread or (is/can be configured) multithreading?

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