Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

WIP: add an example of a bidirectional gRPC call via tonic#404

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
lunar-debian wants to merge1 commit intoactix:main
base:main
Choose a base branch
Loading
fromlunar-debian:tonic-bidirectional

Conversation

@lunar-debian
Copy link

@lunar-debianlunar-debian commentedFeb 1, 2021
edited
Loading

Hi! This is an attempt to add an example of using actix and tonic together (#348) by integrating a client bidirectional gRPC call with other actors.

The proto provides anEcho service with anEcho RPC. It’s a bidirectional stream, sendingEchoRequest and receivedEchoReply. I haven’t written the corresponding server yet, but it should be easy enough.

Anyway, this doesn’t build at the moment and I’m not sure to be on the right track…

The current idea is to have anEchoService, looking like gRPC, responsible for maintaining a connection to the gRPC server.
It accepts aRunEcho message to call the RPC and start anEchoRpc actor that would handle input/output for the bidirectional stream. Does it make sense to architecture things this way?

Where I’m stuck is how to implement the actual call to the RPC (see theRunEcho handler). I can’t find the proper way to integrate the call without lifetime issues. Any idea?

I'm quite new to Rust, so I would be thankful for any other comments.

This PR is also missing aREADME, which I would happily write after a validation of the general architecture by someone more knowledgeable with Actix and the general ecosystem.

@robjtederobjtede marked this pull request as draftFebruary 1, 2021 14:08
@robjtede
Copy link
Member

If there's still interest in getting this PR in a state to merge we'd be interested. Otherwise, if there's no updates, I'll close it out in a couple weeks or so.

@robjtederobjtede linked an issueMar 6, 2022 that may beclosed by this pull request
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

tonic example

2 participants

@lunar-debian@robjtede

[8]ページ先頭

©2009-2025 Movatter.jp