这是indexloc提供的服务,不要输入任何密码
Skip to content

Load workers dynamically #175

@Angelmmiguel

Description

@Angelmmiguel

Is your feature request related to a problem? Please describe.

When you start Wasm Workers Server, it retrieves all the workers in the given location (remote Git repo or local folder). After this initialization, it cannot add new workers on the fly and it requires you to restart the entire server.

Since we have an administration panel (#167), it would be nice to allow creating new workers on the fly or even edit existing ones. This is also related to the ability of "watching" running workers and reloading them (#157)

Describe the solution you'd like

I would like Wasm Workers Server to load new workers dynamically. Instead of a static list of Routes and a fixed set of URLs, the wasm_handler should receive any request that was not managed by other handler. Then, it iterates over the Routes and find the one that can reply it. The Routes struct must be mutable, so we can add new workers / routes under demand.

That approach opens new uses cases like the ones mentioned above.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions