Skip to main content

News Synchronization Flow

Orchestration pipeline for fetching global market news and symbol-specific company news, persisting to DynamoDB with TTL.

Sequence​

Data Persistence Strategy​

EntityStoreKey Schema (Partition / Sort)TTL
Market NewsDynamoDBPK: CATEGORY#{CAT} / SK: TS#{UNIX}#ID#{ID}7 Days
Company NewsDynamoDBPK: SYMBOL#{SYM} / SK: TS#{UNIX}#ID#{ID}7 Days

Logic Highlights​

FeatureDetail
Multi-CategoryFetches general, forex, crypto, and merger news in a single job run.
DeduplicationUses DistinctBy(a => a.Id) to prevent redundant processing of the same article.
Throughput OptimizationUses Parallel.ForEachAsync with WorkerSettings.MaxDegreeOfParallelism for company-specific news.
DynamoDB BatchingImplements BatchSaveAsync to reduce write I/O costs and latency.
Auto-CleanupTTL attribute ensures stale news is automatically removed by DynamoDB.