0.1.0 • Published 8 months ago

@anna-ai-assistant/queue v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

queue

Queue lib for integrate rabbitmq in nest project

Getting started

Installation

$ npm install @anna-ai-assistant/queue

Usage as microservice

const app = await NestFactory.createMicroservice<MicroserviceOptions>(
  AppModule,
  {
    strategy: new QueueTransportStrategy(),
  },
);
app.listen(() => {});

Usage as module

@Module({
  imports: [
    QueueModule.forRoot({
      uri: 'amqp://localhost',
    }),
  ],
})
export class AppModule {}