Hi, You have two potential approaches:
i) AsyncGenericService (*1): This method allows you to sidestep all serialization and deserialization processes. It's typically the go-to choice when building a proxy. ii) Custom serialization (*2): Since gRPC doesn't mandate a specific serializer (like Protobuf), you can opt for a different one. In this case, you would provide already serialized data directly, effectively skipping the serialization step within gRPC. *1: https://github.com/grpc/grpc/blob/fdc18d28aba482bf446e662f0b369de7c36d9aad/include/grpcpp/generic/async_generic_service.h#L66 *2: https://github.com/grpc/grpc/blob/fdc18d28aba482bf446e662f0b369de7c36d9aad/include/grpcpp/impl/proto_utils.h#L45 Regards, Esun. On Wednesday, January 15, 2025 at 3:26:56 AM UTC-8 Ashutosh Maheshwari wrote: > Hello, can anyone please respond on this? > > I am following the recommendation put across the github grpc repo on how > to ask a question but I am not observing the attention of the core group > members here who could probably answer my question. > > Shall I post my query on some other forum? > > Regards > Ashutosh > > On Tuesday, January 7, 2025 at 8:30:51 PM UTC+5:30 Ashutosh Maheshwari > wrote: > >> Hello, >> >> We have implemented a C++ grpc server >> using grpc::ServerAsyncReaderWriter< W, R > Class. >> >> We are currently using the completion queue mechanism to post the gnmi >> notifications to sent over gRPC towards the gnmi client. >> >> We want to get rid of the latency introduced by the deserialization / >> serialization of the gnmi payload into the protocol message buffer in the >> grpc stack and rather *wish to directly write the serialized protocol >> message buffer into the grpc stack.* >> >> Are there any APIs exposed to gRPC applications ( in this case gnmi) >> which can be called to post the protocol message buffer (gnmi.proto) >> without using the gRPC Write >> <https://grpc.github.io/grpc/cpp/classgrpc_1_1_server_async_reader_writer.html#aed023e1acec29eadcc44c83f28e6dd72> >> which >> otherwise expects a gnmi::SubscribeResponse object as a tag/payload. >> >> Regards >> Ashutosh >> >> -- 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 grpc-io+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/grpc-io/ed0f28f0-35dd-49de-908a-811807acb88an%40googlegroups.com.