> On 15 May 2021, at 6:35 am, Raja Omer <[email protected]> wrote:
>
> Do I have to read the excel in this step using python or do I have to make a
> database connection and pull the excel data from a database?
You can do this in both ways - one of them (say one protobuf message per row -
for example) is scalable, but admittedly slightly complicated. The other is
simple, but wouldn’t scale well.
For the first approach, you would define a message as follows (for eg):
message Row {
Col1 string
Col2 int
}
Combine it with client side streaming.
For the second approach, you would define instead:
message excelData {
data bytes
}
In the first approach, you do more work on both the client side (reading the
excel file, construing a protobuf message) and the same work in reverse on the
server side.
In the second approach, you do all the work on the server side.
However, the recommended approach is the first one.
Hope that helps.
--
You received this message because you are subscribed to the Google Groups
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/grpc-io/F5B6829D-7280-42D3-826B-2F56419776E5%40gmail.com.