Performance: Redis transport
MEDIUM IMPACT
This affects the speed and responsiveness of message passing between microservices or modules in a NestJS application.
@EventPattern('channel') async processMessage(@Payload() message) { await heavyAsyncProcessing(message); }
@EventPattern('channel')
processMessage(@Payload() message) {
// process message synchronously
heavySyncProcessing(message);
}| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Synchronous message processing | N/A | N/A | N/A | [X] Bad |
| Asynchronous message processing | N/A | N/A | N/A | [OK] Good |