Skip to content

Commit 614dea2

Browse files
KLarpentshemsedinov
authored andcommitted
Explanation of exclusive option in procedure invocation
1 parent 643f840 commit 614dea2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/en/SERVER.md

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ const result = await application.invoke({
3131
console.log({ result });
3232
```
3333

34+
Invocation of procedures has additional option to control — `exclusive` flag. Exclusivity means whether to capture a whole worker thread for execution or a procedure might be processed asynchronously beside the other non-exclusive procedures and tasks at the same thread. That way gives you flexibility in launching practical tasks logic to balance between more stable runtime for critical logic and handling higher workload of small async tasks (evenly spread among threads).
35+
3436
## Context isolation
3537

3638
Metarhia provides isolation between users in terms of both state and control flow, and further isolates individual user requests by preventing the mutation of connection states from within the domain logic and API endpoints. The application server employs multiple techniques for code execution isolation: including V8 sandboxing, closures, and worker threads. The primary objectives of this isolation are to enhance security and prevent race conditions. Additionally, isolation helps to safeguard the code through both reference pollution prevention and prototype pollution prevention.

0 commit comments

Comments
 (0)