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

Implementing ACK Mechanism for Reliable Message Delivery in gRPC Streams #11794

Open
iokk3732 opened this issue Jan 3, 2025 · 1 comment
Open
Labels

Comments

@iokk3732
Copy link

iokk3732 commented Jan 3, 2025

When I use gRPC streams, calling onNext() is an asynchronous operation. In cases of poor network conditions, packet loss may occur. Is there any way to implement an acknowledgment mechanism similar to TCP/IP's ACK?

@kannanjgithub
Copy link
Contributor

gRPC guarantees message ordering, so if the sender sends messages A, B and C in a stream, there can never be a case where only A and C are received but B is lost. If C is received, it implies both A and B were received as well. gRPC also buffers and retires messages in a stream.
Any ack mechanism that is needed should be implemented in the application code.

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

No branches or pull requests

2 participants