NestJS · Senior · Question 65 of 75

Why can @nestjs/event-emitter handlers run before the database transaction commits?

Explanation

Emit after commit, or write to an outbox in the same transaction and process it afterwards.

Further reading

Problem with a question

NestJS · Senior · question 65

Test yourself

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

Take this quiz