xanthous-tech / dgraph-ws-client

dGraph gRPC client wrapped in WebSocket protocol implemented in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dgraph-ws-client

This is a dGraph gRPC client wrapped with WebSocket protocol written in Rust.

Motivation

We have previously implemented dgraph-js-native but was not getting enough performance boost due to not being able to invoke JS method in Rust thread in Neon. The poll-based approach was good but was simply wasting cycles and hurt the performance. I think the only other way to get better performance is to use WebSocket to wrap the gRPC client, and have this live alongside of dGraph Alpha's so the JS side can just use WebSockets to communicate.

Sponsor

Treelab

License

MIT

About

dGraph gRPC client wrapped in WebSocket protocol implemented in Rust

License:MIT License


Languages

Language:Rust 98.0%Language:Dockerfile 2.0%