Fetching page data & rendering components
Fetching page data & rendering components
Architected real-time article synchronization from admin CMS to Elasticsearch via AWS SQS & Lambda, backed by 2x daily CLI fail-safe cron jobs.
Previously, the Beautyhaul public article website fetched article listings and search results by querying MySQL directly. Under peak traffic, heavy SQL reads locked database connection pools and degraded response speeds.
To solve this, we migrated the public article data source to Elasticsearch 8, while engineering a dual-layer synchronization architecture:
[ Admin CMS Create/Update ]
│
(Instant Event Dispatch)
▼
[ AWS SQS Queue ]
│
(Event Trigger)
▼
[ AWS Lambda Worker ] ──(Real-Time Upsert)──► [ Elasticsearch Blog Index ] ◄── [ Public Article Website ]
│ ▲
(Cloud Glitch/DLQ) │
▼ │
[ Fail-Safe CLI Backup ] ──(2x Daily Cron Re-sync)────┘
Security & Sanitization Note: Architectural parameters, metrics, and code snippets above have been generalized and sanitized to protect proprietary corporate infrastructure while representing exact real-world engineering methodologies.