Taking 20 mins to send a 10MB file

31 views
Skip to first unread message

Joseph Liu

unread,
Dec 20, 2020, 1:05:30 AM12/20/20
to grpc.io
I've tried two methods of sending a 10MB file:

1. Sending over a stream byte by byte
2. Sending as a single message

However, the result is still the same; it takes 20 mins or so to send over the payload in a single gRPC call.

What can I do to make this faster?

Sylvain Le Gall

unread,
Dec 20, 2020, 4:34:01 PM12/20/20
to grpc.io
I have done something similar. I am sending the data with 1.9MB per message using a stream. For now, I am limited by the underlying storage system that takes sometime to write the data (using gRPC/Java/Google Cloud). I am transferring up to 140GB this way.

I can achieve 20-30 MB/s.

If you give more details, it might help to understand why it is slow for you (running locally or not, where are you writing the data you receive...)

Reply all
Reply to author
Forward
0 new messages