Sync or async api, how to choose? #2955
ActivePeter
started this conversation in
General
Replies: 1 comment
-
It depends on your use cases. If you would like to isolate every execution environment, using a standalone VM instance is better. If not, you can choose the async one. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Suppose we have many tasks to be executed, one way is to create one vm runtime to and use async api to run tasks in parallel.
Another way is to create many vms to and use multiple threads to run
vm.run_func()
Which one is better, or is there any trade-off for different workload?
Beta Was this translation helpful? Give feedback.
All reactions