Questions tagged [grpc]

Developed at Google, gRPC is a versatile Remote Procedure Call (RPC) framework that operates over HTTP/2. Known for being language and platform agnostic, gRPC enables developers to create applications in which separate services can seamlessly collaborate as though they were natively integrated. Additionally, it leverages Protocol Buffers as its interface description language.

What impact does manually serializing gRPC request and response objects have on performance?

I am aiming to establish communication with a NodeJS microservice by sending and receiving data. The challenge lies in the fact that both my request and response objects have dynamic components - fields containing a union of 'string' and 'nu ...

The package import path varies between dynamic code generation and static code generation

I have organized the src directory of my project in the following structure: . ├── config.ts ├── protos │ ├── index.proto │ ├── index.ts │ ├── share │ │ ├── topic.proto │ │ ├── topic_pb. ...

The error message "npm install gives '. ' is not a valid internal or external command, operable program or batch file" appeared when attempting to run the npm install command

I'm having trouble getting an existing project up and running; I've hit a roadblock during the installation phase. When I try to run npm install, I encounter the following error: npm ERR! path C:\Users\~\Source\node_modules&bs ...

Issue encountered when converting java.util.Collections$UnmodifiableRandomAccessList to com.google.protobuf.Message

After receiving a gRPC response in the form of a Dynamic Message with nested fields, I am attempting to extract the top-level field first and then accessing the nested fields. Here is an example of how the response is structured: field1 { key1: "val ...

"Creating a backend server using Node.js, TypeScript, and g

I am currently in the process of developing a nodejs project that will consist of 3 key services: Gateway Product Order The Product and Order services will perform functions related to their respective names, while the Gateway service will take JSON requ ...

The NodeJS gRPC client is experiencing an UNAVAILABLE status and is not attempting to retry

I've got a NodeJs client that connects to a GRPC backend through an AWS Load Balancer. The client is set up as a singleton, but we're running into issues where the connection becomes UNAVAILABLE after a while, leading to TCP Socket write errors d ...

Error in NodeJs - Unable to load the gRPC binary module as it was not properly installed on the current system. Is the expected directory missing?

I am encountering an error while running my NodeJs App. sudo /usr/local/bin/node app.js Error: Failed to load gRPC binary module due to it not being installed for the current system Expected directory: node-v57-linux-x64-glibc Found: [node-v ...

Utilize NestJS to retrieve information from an observable gRPC service

One of the challenges I am facing is using gRPC service to facilitate communication between my microservices. Specifically, when receiving a response from the Grpc service, I need to apply some modifications and additional functionality before returning a ...

Certification could not be validated (grpc/node)

As I delve into this tutorial for guidance, my aim is to successfully execute the node example. After downloading the folder and navigating to the directory, I attempted running npm install. Here is the stack trace that was generated. npm WARN package.j ...

Making calls to an Angular GRPC API through an Envoy proxy

Having trouble connecting to the GRPC server from the UI via Envoy. Here's the code snippet for the Envoy proxy: static_resources: listeners: - address: socket_address: address: 0.0.0.0 port_value: 8888 filter_chains: ...

Guide to incorporating external proto definitions into NodeJS using proto-loader

The URL for making RPCs is flow-testnet.g.alchemy.com:443 I am currently missing all .proto files on my local system. What is the process for loading them in order to create package definitions? ...

"Understanding How to Utilize the Grpc Stream Variable for Extended Processes in Node.js

Utilizing Node.js for connecting to a server through gRPC in order to execute a lengthy task. The server sends a one-way stream to the client (Node.js app) while the task is ongoing. I am looking to add a Stop button and have been advised that closing the ...

Transmit basic JSON data to a gRPC server with Python

When interacting with a gRPC-enabled, reflection-enabled server using grpcurl, I can easily send requests with the following syntax: grpcurl --plaintext -d '{"test_input": "Test 1 2 3", "config": { "max_results": 3 ...

gRPC in Python: Unable to create an instance of abstract class ServicerContext

Trying out this method: def my_method(self, request, context): context.set_details('Already exists') context.set_code(grpc.StatusCode.ALREADY_EXISTS) To test it, I need to provide a request and a context (which is a grpc.ServicerContext ...

gRPC error: "unable to connect to the specified address" while running a NestJS application on Docker

I am encountering this particular error message when trying to run my NestJS application in a Docker container with gRPC: { "created": "@1616799250.993753300", "description": "Only 1 addresses added ou ...

Exploring the capabilities of using Next.js with grpc-node

I am currently utilizing gRPC in my project, but I am encountering an issue when trying to initialize the service within a Next.js application. Objective: I aim to create the client service once in the application and utilize it in getServerSideProps (wit ...