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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
2 additions and
1 deletions
-
CHANGELOG.md
-
apps/api/src/services/queues/data-gathering/data-gathering.module.ts
|
|
|
@ -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 |
|
|
|
|
|
|
|
|
|
|
|
@ -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 |
|
|
|
}, |
|
|
|
|