nedu-backend: Multi-Platform Publishing & Distributed Synchronization
Core backend microservice orchestrating multi-tenant social media publishing and real-time inbox synchronization via Zernio OAuth REST APIs.
Core contributor responsible for the resilient publish pipeline and OAuth token management. Implemented single-flight mutex token refresh to prevent concurrency race conditions, generation fencing for background workers, and authored 30+ Jest test suites.
- Single-Flight Token Refresh: Clustered single-promise deduplication preventing duplicate refresh requests when multiple worker threads encounter expired OAuth tokens.
- Idempotency & Generation Fencing: State-machine atomic row updates ensuring network retries never trigger duplicate posts to third-party social endpoints.
- Self-Healing Reconcile Cron: Background sweeper detecting stuck or desynced scheduled posts and re-enqueuing with exponential backoff.