Logo
Saved Posts Trackerby gitnasr.com softwares

Cloudinary CDN Synchronization

How media is mirrored to Cloudinary to prevent expired Instagram image links.

Cloudinary CDN Synchronization

Instagram CDN URLs contain short-lived cryptographic tokens (&_nc_ht=...&oh=...). Within days or weeks, these URLs return HTTP 403 Forbidden.

How Media Sync Works

  1. Background Job Queue: As posts are discovered, their media URLs are queued for mirroring.
  2. High-Res Ingestion: The system downloads the highest resolution candidate and streams it to Cloudinary.
  3. Carousel Processing: For multi-image/video posts, every item in carouselMedia is mirrored with its original display order.
  4. URL Replacement: The local database updates cloudinaryThumbnailUrl and cloudinaryUrl, serving ultra-fast, permanently available images.

Profile Picture Change Detection

The archiver computes a cryptographic SHA-256 hash of creator profile pictures:

  • When a creator updates their profile picture, the tracker detects the hash discrepancy.
  • The new avatar is synced, and an append-only profile_pic_changed event is logged to the creator's timeline.