@nest-cloud/nest-cloud-starter-nacos-balancer
v1.0.1
Published
Nestjs Cloud
Downloads
3
Readme
import { NacosBalancerModule, LoadBalanced } from "@nest-cloud/nest-cloud-starter-nacos-balancer";
@Module({
imports: [
NestConfigModule.forRoot({ isGlobal: true }),
NacosDiscoveryModule.register(),
NacosBalancerModule.register(),
],
controllers: [AppController],
providers: [AppService],
})
export class AppModule {}
@Injectable()
export class AppService {
private readonly logger = new Logger(AppService.name);
constructor(@LoadBalanced() private httpService: HttpService) {}
}
}