lablup / lablup/raftify

Write Javascript binding

Open
#94 0 comments 0 reactions 0 assignees View on GitHub
epic idea need poc
Dominant language
Rust
Stars
44
Forks
14
PR merge metrics
No merged PRs in 30d

Description

While it is not a feature required for our use case, if someone is interested, they can explore implementing it.

## Approach 1: Build WebAssembly

In my opinion, compiling to WebAssembly (WASM) is unrealistic. To support WASM compilation, we would need to add bindings for the raft-rs module, while implementing the network and storage layers in JavaScript. To achieve this, a refactoring of raftify to abstract the network and asynchronous runtime layers would be necessary beforehand.

## Approach 2: Build Node.js native binding using `neon` or `napi-rs`

More exploration is needed, but this approach seems more realistic than the first one.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.