LiquidAI-project / wasmiot-orchestrator

MIT License
0 stars 1 forks source link

Translate orchestrator API from Node.js to Rust #66

Open trkks opened 1 year ago

trkks commented 1 year ago

Dealing with Node.js has not been pleasant and I hope changing to Rust would make the HTTP-server and orchestration logic easier to reason about and maybe provide some novelty value for the project.

My plan is to use Actix Web based on its popularity, seemingly-straightforwardness and performance (which tbh most likely isn't needed here, but hey it sounds cool 🚀 ).

trkks commented 1 year ago

My initial plan was to keep some of the Node.js code and just have the orchestrator HTTP API and logic be rewritten, but as others pointed out having too many languages will make things too complicated.

So instead of making the current mDNS scanner into a microservice (and another container), a Rust equivalent should be found. Some crates I'm considering include:

trkks commented 12 months ago
* [`mdns-sd`](https://crates.io/crates/mdns-sd): marginally less popular than the one above but currently maintained

I'm gonna go with this crate. Tested it (v0.9.1) to work with supervisor. Search/browse interface works with the service type _webthing._tcp.local. instead of the mere webthing that was is used on Node.js equivalent.