Skip to content

Maintaining/Re-establising a ClientReadableStream #1292

Answered by sampajano
JonasDoe asked this question in Q&A
Discussion options

You must be logged in to vote

Ahh i hear you. :)

I think the problem is that you're trying to use grpc-web streaming as a long-lived "push channel", where it's not exactly designed to solve that particular use case. As you've mentioned, you need an end-to-end keep-alive mechanism (what you refer to as "ping from time to time") to ensure the other endpoint is still alive, which is not part of grpc in general.

Although, I'm not saying it's not possible to build it on top of grpc-web, but you're gonna need to build a lot more on your application layer — e.g. including things that you asked about like session management, "fetching missing data", and also potentially sticky routing, session resuming, etc. — and those are c…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@JonasDoe
Comment options

@sampajano
Comment options

@JonasDoe
Comment options

@sampajano
Comment options

Answer selected by JonasDoe
@JonasDoe
Comment options

@sampajano
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants