@lucaapp/service-utils 1.59.2 → 1.59.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -158,7 +158,11 @@ class KafkaClient {
|
|
|
158
158
|
const topic = await this.getTopic(kafkaTopic);
|
|
159
159
|
const groupId = `${this.environment.valueOf()}_${kafkaTopic.valueOf()}_${this.serviceIdentity.identityName}`;
|
|
160
160
|
try {
|
|
161
|
-
const consumer = this.kafkaClient.consumer({
|
|
161
|
+
const consumer = this.kafkaClient.consumer({
|
|
162
|
+
groupId,
|
|
163
|
+
sessionTimeout: 20000, // 20 seconds
|
|
164
|
+
heartbeatInterval: 3000, // 3 seconds
|
|
165
|
+
});
|
|
162
166
|
this.consumers.push(consumer);
|
|
163
167
|
await consumer.connect();
|
|
164
168
|
await consumer.subscribe({ topic, fromBeginning });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucaapp/service-utils",
|
|
3
|
-
"version": "1.59.
|
|
3
|
+
"version": "1.59.4",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -44,7 +44,6 @@
|
|
|
44
44
|
"swagger-ui-express": "4.5.0",
|
|
45
45
|
"url-value-parser": "^2.2.0",
|
|
46
46
|
"uuid": "^9.0.0",
|
|
47
|
-
"vitest": "2.0.5",
|
|
48
47
|
"zod": "3.22.3"
|
|
49
48
|
},
|
|
50
49
|
"devDependencies": {
|
|
@@ -69,13 +68,15 @@
|
|
|
69
68
|
"sqlite3": "5.0.4",
|
|
70
69
|
"supertest": "^6.3.3",
|
|
71
70
|
"typescript": "5.5.3",
|
|
72
|
-
"vite-tsconfig-paths": "4.3.2"
|
|
71
|
+
"vite-tsconfig-paths": "4.3.2",
|
|
72
|
+
"vitest": "2.0.5"
|
|
73
73
|
},
|
|
74
74
|
"resolutions": {
|
|
75
75
|
"yaml": "2.2.2",
|
|
76
76
|
"semver": "7.5.2",
|
|
77
77
|
"follow-redirects": "1.15.6",
|
|
78
78
|
"braces": "3.0.3",
|
|
79
|
-
"send": "0.19.0"
|
|
79
|
+
"send": "0.19.0",
|
|
80
|
+
"rollup": "4.22.4"
|
|
80
81
|
}
|
|
81
82
|
}
|