All quizzesMedium
Redis, RabbitMQ & More
Preview — 3 of 10 questions
How do you run an HTTP server and a microservice listener in the same NestJS process?
ACall NestFactory.createMicroservice() twice
BCreate the HTTP app with NestFactory.create(), call app.connectMicroservice(options), then app.startAllMicroservices() and app.listen(port)
CIt is impossible — they must be separate processes
DSet transport: 'hybrid' in forRoot()
Which options correctly configure the Redis transport?
A{ servers: ['redis://localhost'] }
B{ brokers: ['localhost:6379'] }
C{ queue: 'redis_queue' }
D{ host: 'localhost', port: 6379, retryAttempts: 5, retryDelay: 1000 }
In the RabbitMQ transport, what does setting noAck: false (with queue) require you to do?
ANothing changes — messages auto-acknowledge
BYou must manually acknowledge each message via the RmqContext channel, otherwise unacked messages are redelivered
CIt disables the queue entirely
DIt switches to fire-and-forget only
Sign up free to play
Answer all 10 questions (7 more), see explanations for every answer, and track your score.