Skip to content

wasmer(go) concurrency #413

@miretskiy

Description

@miretskiy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ❓ questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions