How to add request timeout in GRPC Server in Nestjs

We have created a GRPC server microservice in nestjs which fetches data from the Database and share the result with the client. but need to add some timeout in the GRPC server so if the request is not completed within that time the need to throw an error to the server and terminate the request is there any way to define timeout in the GRPC server

I read there is no option present in the GRPC server for timeout, which needs to be handled in the GRPC client using the deadline parameter.

can you please help me here, please give some examples of GRPC client and server using nestjs



Comments

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation