Browse Source

Improve throughput by applying rate limit per data source

pull/7128/head
Thomas Kaul 3 weeks ago
parent
commit
a423615969
  1. 1
      apps/api/src/services/queues/data-gathering/data-gathering.module.ts

1
apps/api/src/services/queues/data-gathering/data-gathering.module.ts

@ -29,6 +29,7 @@ import { DataGatheringProcessor } from './data-gathering.processor';
BullModule.registerQueue({
limiter: {
duration: ms('4 seconds'),
groupKey: 'dataSource',
max: 1
},
name: DATA_GATHERING_QUEUE

Loading…
Cancel
Save