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

feat(framework) One gRPC request per Message in GrpcDriver #5073

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

panh99
Copy link
Contributor

@panh99 panh99 commented Mar 12, 2025

Why this PR?

gRPC has a hard limit on the size of a single gRPC message. If we push or pull multiple Messages in a single PushMessagesRequest or PullMessagesResponse, we gonna hit the limit very easily. For example, given the 2GB limit, if the driver pushes 100 messages in a single request, the actual limit for each message will be just 20 MB.

However, sending each message sequentially can be pretty slow. And thus we can accelerate it via multi-threading.

What it does?

Send each Message in a separate gRPC request.

@panh99 panh99 marked this pull request as draft March 12, 2025 12:16
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

Successfully merging this pull request may close these issues.

1 participant