Crates.io | frenezulo_beta |
lib.rs | frenezulo_beta |
version | 0.1.0 |
source | src |
created_at | 2022-09-08 04:02:05.601236 |
updated_at | 2022-09-08 04:02:05.601236 |
description | temporary crate to test with shuttle.rs |
homepage | |
repository | https://github.com/kali6o4/frenezulo |
max_upload_size | |
id | 660775 |
size | 58,598 |
A WASM-embedding webserver build on top of submillisecond and lunatic.
Build to serve as an entry point for microservices compiled to WASM. By utilizing WASM isolation it can scale services down to zero or up to infinity, depending on demand.
Note: At this time some changes to upstream repositories are required, primarily the upstream lunatic-rs does not expose a function to spawn WASM modules with a tag & configuration, which is required. This has been resolved. Frenezulo can run on the latest stable upstream versions.
Services can be registered locally, or added via an endpoint (/services/add)
** WARNING ** DO NOT EXPOSE THIS SERVER TO THE INTERNET DIRECTLY. THIS WILL ALLOW ARBITRARY WASM MODULES TO BE EXECUTED. Due to the nature of WASM this does not pose a security thread to the underlying system, but grants arbitrary execution permissions.
Each registered service gets one endpoint under it's prefix, for example the service with the prefix test
serves all requests to /test/*
, including /test/
and /test
.
Only one prefix is reserved at this time, services
, which is used to manage registered services.
Note that the above times are not for a full TCP accept queue. If the accept queue is saturated newly enqueued requests may experience up to 500ms of delay (at the default accept queue size of 1024). This should never happen in real-world scenarios though. Running a load balancer of some kind is critical in production scenarios.