Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wasmer(go) concurrency #413

Open
miretskiy opened this issue Jan 8, 2025 · 0 comments
Open

wasmer(go) concurrency #413

miretskiy opened this issue Jan 8, 2025 · 0 comments
Labels
❓ question Further information is requested

Comments

@miretskiy
Copy link

I'm trying to understand how to use wasmer-go to enable concurrent execution of
(exported) functions.

Documentation is silent on this topic.
Among Engine, Store, Module, Instance, Function, Memory, I assume none are safe for concurrent
use.

However, other runtimes (wasmtime) allow multiple instances to be created (provided this action is mutex protected), and then
you can create multiple function instances that can be called concurrently.

is it possible to do something similar w/ wasmer? I've tried many different approaches -- without
much luck -- all wind up in a CGo panic (or panic during panic);

In general, an example of concurrent execution or at least documentation explaining which wasmer components
are safe for concurrent use would be much appreciated.

@miretskiy miretskiy added the ❓ question Further information is requested label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❓ question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant