Skip to content

dGraph gRPC client wrapped in WebSocket protocol implemented in Rust

License

Notifications You must be signed in to change notification settings

simon-shi87/dgraph-ws-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 96.4%
  • Dockerfile 3.6%