Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a golang method for calling rpc. #317

Closed
a3sroot opened this issue Nov 3, 2023 · 5 comments
Closed

Add a golang method for calling rpc. #317

a3sroot opened this issue Nov 3, 2023 · 5 comments

Comments

@a3sroot
Copy link

a3sroot commented Nov 3, 2023

Compatible with the golang for calling rpc

@knightast
Copy link
Contributor

No golang bprc client yet :(

The rpc and rest server of TuGraph both using brpc, therefore we'd better using brpc client.

Currently, the brpc client of TuGraph support c++/java/python. C++ using brpc official client, while java using baidu supported client (https://github.com/baidu/starlight). Python using python11 of c++ client.

Anyway, rest client can be much easier supported by any language.

@a3sroot
Copy link
Author

a3sroot commented Nov 30, 2023

Why not use GRPC?

@qishipengqsp
Copy link
Collaborator

tugraph-db uses braft as its consistency protocol, which binds brpc as its embedded rpc. So we use brpc as default between client and server. Moreover, brpc is a good choice besides grpc.

@qishipengqsp
Copy link
Collaborator

Now tugraph-db supports bolt protocol, which enables us to use some open-source client from Neo4j community. If you prefer Golang, you can try this at https://github.com/TuGraph-family/tugraph-db/blob/master/demo/Bolt/go_example.go

@qishipengqsp
Copy link
Collaborator

We hope we help you on this issue. This issue will be closed as it is supposed to be solved. If you have any more questions, please feel free to reopen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants