#
Analytics Queues
Stats collection uses the same queues as dashboard video tracking. See Dashboard Queues for full message shapes.
#
Queue Role in Analytics
Both queues are consumed by queue-processor, which writes to video_statistics.
#
YouTube Special Case
YouTube video statistics cannot be fetched in the same call as video metadata. After a blogger's YouTube videos are saved, blogger-video-consumer enqueues batches of 50 videos to HIGH_PRIORITY_QUEUE:
{
type: 'video_batch',
platform: 'youtube',
videos: [{ videoUrl, userId, organizationId, externalVideoId }],
priority: 'high',
source: 'blogger-initial-fetch' | 'blogger-midnight-batch',
batchNumber: number,
totalBatches: number,
organizationId: string,
enqueuedAt: string,
requestId: string
}