Skip to content
Snippets Groups Projects
Commit 00919165 authored by Jonas Schlabertz's avatar Jonas Schlabertz
Browse files

Boosts performance.

parent 345905b8
No related branches found
No related tags found
No related merge requests found
Pipeline #177346 passed
No preview for this file type
......@@ -64,8 +64,10 @@ class IngestionService {
start(): void {
logger.info("Starting IngestionService");
// Only one message should be processed at a time.
this.channel.prefetch(1);
// Process up to three messages at a time.
// While one message waits for the database,
// the other two can be processed.
this.channel.prefetch(3);
this.channel.consume(config.rabbitMQ.queue, (message) => {
if(!message) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment