Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

456
Visualizações
NestJS: How to use async/awayt instead of RxJS in gRPC client code?

I have a set of NestJS micro-services which are written using async/await in their APIs. After adding gRPC, I am able to use async/await in the server implementation of gRPC APIs, however the client code would always return RxJS Observable. Because of this, I have to wrap gRPC method calls into firstValueFrom().

await firstValueFrom(this.orderService.getOrder({ orderId }));

I don't want to mix both paradigms, it is inconvenient, and it just adds redundant code. I went through the Nest gRPC documentation and could find any references on how to use async/await instead of RxJS in the client code. At the same time, if they allow using async/await in the server APIs, I assume it is somehow possible to do the same on the client side.

Q: How to use async/awayt instead of RxJS in gRPC client code in NestJS?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda