This commit is contained in:
Emily
2024-09-12 16:16:19 +02:00
parent 6a9a698b7a
commit 525a371a6e
20 changed files with 746 additions and 365 deletions

View File

@@ -20,7 +20,8 @@ export async function startStreamLoop() {
await RedisStreamService.startReadingLoop({
streamName: requireEnv('STREAM_NAME'),
delay: { base: 10, empty: 5000 },
readBlock: 2000
readBlock: 2000,
consumer: 'consumer_' + process.env.NODE_APP_INSTANCE
}, processStreamEvent);
}