NestJS · Middle · Question 44 of 75

What's the difference between @MessagePattern and @EventPattern in Nest microservices?

Explanation

On the client side, client.send() expects a response and client.emit() publishes an event.

Further reading

Problem with a question

NestJS · Middle · question 44

Test yourself

Take the NestJS · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz