Flow of Execution
  • 30 May 2024
  • 1 Minute to read
  • Contributors
  • PDF

Flow of Execution

  • PDF

Article summary

Flow of Execution

Data Flow depends heavily on multitasking. Huge amounts of concurrent customer sessions are handled by just a handful of threads from a small threadpool. There is no separate thread allocated for any single session.

The multitasking approach employed by Data Flow requires every long running operation to be performed in an asynchronous manner. This means that neither in the engine nor in the nodes there is ever a wait or sleep call of any kind.

Custom nodes are also not exempt from that. Blocking execution by sleeping or writing long loops is undesired. Any script call that exceeds 20 milliseconds is immediately terminated by the Data Flow engine. This timeout is per JavaScript method call. These calls include include; createNode, onEvent, onAudio, HTTP Response Handler and Flush. This timeout can be changed via the server config and changing it requires service restart.


Was this article helpful?

What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.