Browse Source

Task/decrease rate limiter duration of market data gathering queue (#7129)

* Decrease rate limiter duration

* Update changelog
pull/7094/head
Thomas Kaul 5 days ago
committed by GitHub
parent
commit
3c758b90e2
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 2
      apps/api/src/services/queues/data-gathering/data-gathering.module.ts

1
CHANGELOG.md

@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Improved the throughput of the market data gathering queue by applying the rate limit per data source
- Decreased the rate limiter duration of the market data gathering queue jobs from 4 to 3 seconds
### Fixed

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

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

Loading…
Cancel
Save