https://github.com/xanthous-tech/dgraph-ws-client
dGraph gRPC client wrapped in WebSocket protocol implemented in Rust
https://github.com/xanthous-tech/dgraph-ws-client
Last synced: over 1 year ago
JSON representation
dGraph gRPC client wrapped in WebSocket protocol implemented in Rust
- Host: GitHub
- URL: https://github.com/xanthous-tech/dgraph-ws-client
- Owner: xanthous-tech
- License: mit
- Created: 2020-05-25T14:07:40.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-12T10:23:18.000Z (over 5 years ago)
- Last Synced: 2025-01-03T23:16:43.639Z (over 1 year ago)
- Language: Rust
- Size: 69.3 KB
- Stars: 1
- Watchers: 5
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dgraph-ws-client
This is a dGraph gRPC client wrapped with WebSocket protocol written in Rust.
# Motivation
We have previously implemented [dgraph-js-native](https://github.com/xanthous-tech/dgraph-js-native) but was not getting enough performance boost due to [not being able to invoke JS method in Rust thread in Neon](https://github.com/neon-bindings/neon/issues/197). 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](https://www.treelab.com.cn)
# License
[MIT](./LICENSE)