Browse Source
Task/improve throughput of market data gathering queue by applying rate limit per data source (#7128)
* Improve throughput by applying rate limit per data source
* Update changelog
pull/7129/head^2
Thomas Kaul
4 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
5 additions and
0 deletions
-
CHANGELOG.md
-
apps/api/src/services/queues/data-gathering/data-gathering.module.ts
|
|
|
@ -15,6 +15,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
- Extended the asset profile details dialog of the admin control panel with a copy-to-clipboard button for the ISIN number |
|
|
|
- Extended the asset profile details dialog of the admin control panel with a copy-to-clipboard button for the symbol |
|
|
|
|
|
|
|
### Changed |
|
|
|
|
|
|
|
- Improved the throughput of the market data gathering queue by applying the rate limit per data source |
|
|
|
|
|
|
|
### Fixed |
|
|
|
|
|
|
|
- Fixed an issue with hourly market data updates not refreshing prices for asset profiles with `MANUAL` data source |
|
|
|
|
|
|
|
@ -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 |
|
|
|
|