Await on the backend

Normally I would avoid using await on the front end in favor of .then(), in order to avoid blocking execution.

What happens on the Velo backend when I use await? Does it cause execution to pause for the current user? Or (hopefully not) all users of my website?

I believe each user has it’s own thread which does not block other process.

Wix’s Velo’s backend is based on node.js (v14) so it would work the same

To be confirm by Velo team

When using await on the Velo backend, it only blocks the execution of the current function, not the entire website or other users’ requests. The function will pause until the awaited operation is completed before continuing to execute.