Performance: gRPC transport
MEDIUM IMPACT
This affects the speed and efficiency of communication between frontend and backend services, impacting interaction responsiveness and load times.
import { Transport, ClientsModule } from '@nestjs/microservices'; @Module({ imports: [ ClientsModule.register([{ name: 'SERVICE', transport: Transport.GRPC, options: { package: 'service', protoPath: 'service.proto' } }]), ], }) export class AppModule {}
import { Transport, ClientsModule } from '@nestjs/microservices'; @Module({ imports: [ ClientsModule.register([{ name: 'SERVICE', transport: Transport.HTTP }]), ], }) export class AppModule {}
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| HTTP/REST transport | N/A | N/A | N/A | [!] OK |
| gRPC transport | N/A | N/A | N/A | [OK] Good |