NestJS · Senior · Question 23 of 75

How do you keep transactions consistent across several services in one request without passing a transaction object everywhere?

Explanation

ALS keeps the transaction bound to the async flow of the request, so nested service calls join it.

Further reading

Problem with a question

NestJS · Senior · question 23

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