Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

461
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda