You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Send heartbeat when it's possible in order to not exceed the sessionTimeout
324
+
awaitheartbeat();
325
+
326
+
// Do some slow processing again:
327
+
awaitdoWorkPart2();
326
328
}
327
329
```
328
330
@@ -342,6 +344,26 @@ interface IncomingMessage {
342
344
}
343
345
```
344
346
347
+
If your endpoint involves slow processing time for each message you should consider calling `heartbeat` callback, use `getHeartbeat()` method of `KafkaContext` which will send heartbeat to the broker, as follows:
The Kafka microservice components append a description of their respective role onto the `client.clientId` and `consumer.groupId` options to prevent collisions between Nest microservice client and server components. By default the `ClientKafka` components append `-client` and the `ServerKafka` components append `-server` to both of these options. Note how the provided values below are transformed in that way (as shown in the comments).
0 commit comments