In the first production version of Lynto's backend, every single article that survived deduplication was immediately sent through our full editorial synthesis pipeline. For each ingested story, we generated a concise hook headline, a 4-to-5 sentence summary, a structured Deep Dive dossier (key highlights, competing perspective, historical context, macro impact, analytical Q&A cards, and an ELI5 breakdown), a spoken audio script, full localization across supported languages, and voice synthesis.
That early design had an obvious scaling flaw. Our ingestion engine collects over 500 net-new prime stories a day across global and regional feeds, yet Lynto is built around a finite 10-card daily briefing. Roughly 80% of daily wire items never make it into any reader's Morning or Evening 10. Running heavy multi-language synthesis and audio generation on 100% of ingested articles wasted compute budgets and backed up worker queues for stories nobody ever opened.
Here is how we re-architected our curation queue into a two-stage state machine with a Just-In-Time (JIT) fallback, cutting daily AI and audio compute by roughly 75% while keeping Morning and Evening brief load times instantaneous.
1. Splitting the Monolithic Queue Into Two State Machines
Originally, our ingestion queue tracked each article with a single status field. An article was either completely raw or completely synthesized across all languages.
To decouple fast editorial triage from expensive multi-language synthesis, we split our pipeline into two independent state machines: a lightweight Metadata Gate (Stage 1) that evaluates every incoming article, and an Elite Pre-Curation Engine (Stage 2) reserved for top daily candidates, backed by an On-Demand JIT Synthesizer for long-tail exploration:
| Pipeline Stage | Execution Scope | Relative Compute Cost | What It Produces |
|---|---|---|---|
| Stage 1: Metadata Triage | 100% of ingested stories (500+ / day) | 1x (Baseline) |
Objectivity rating, content classification (standard, scientific, opinion), category assignment, geographic scope, editorial importance, breaking urgency, and boilerplate/paywall filtering. |
| Stage 2: Pre-Warmed Elite Curation | Top ~20% daily candidates | ~30x per story |
Hook headline, 4-to-5 sentence executive summary, full Deep Dive dossier (Perspective, History, Macro Impact, Ask Lynto + ELI5), radio script, and localized editions. |
| On-Demand JIT Fallback | Long-tail stories opened in Search or Category feeds | ~18x per card |
Single-language Deep Dive synthesis triggered on the fly when a reader explores an uncurated long-tail story outside The Daily 10. |
Stage 1 requires roughly one-thirtieth the compute of full multi-language Stage 2 synthesis. Every scraped article passes through Stage 1 within minutes of arrival. If Stage 1 detects that the extracted text is actually a cookie consent wall, login prompt, or broken page, it discards the item before a single synthesis token is spent.
2. Beat-Adjusted Promotion & Anti-Starvation Guardrails
Once Stage 1 scores an article's editorial importance, objectivity, urgency, and publisher prestige, the pipeline decides whether the story should be pre-warmed immediately in Stage 2 or held in a lightweight standby state.
Applying a single flat threshold across all 12 categories does not work in practice. Hard geopolitical and financial wires naturally carry higher urgency signals than astronomy, climate research, or cultural essays. To prevent breaking political news from starving out science and culture, our promotion gate applies beat-adjusted thresholds:
- High-Velocity General & National Feeds: Must clear our strictest promotion bar to qualify for automatic Stage 2 pre-warming.
- Technology & Cultural Beats: Evaluated against a balanced mid-tier threshold so product launches, policy shifts, and cultural essays are not drowned out by breaking wire alerts.
- Science, Space & Climate Feeds: Evaluated against a dedicated research threshold so peer-reviewed discoveries and space missions are pre-curated even when they are not framed as urgent crises.
Preventing Category Starvation & Monopolization
Even with beat-adjusted thresholds, real-world news cycles are uneven. On an election day or during a central bank announcement, dozens of political and financial stories will surge at once, while quieter beats might see very few candidates cross their normal bar. We enforce two opposing guardrails between Stage 1 and Stage 2:
- Rolling Category Floor (Starvation Prevention): If any category has fewer than a minimum number of completed Stage 2 stories within a rolling 24-hour window for a given language, the highest-scoring standby candidates in that category are automatically promoted into Stage 2.
- Rolling Category Ceiling (Anti-Monopolization): Once a high-volume beat fills its daily pre-curation quota for the 24-hour window, routine stories in that category remain on standby unless they carry breaking status or top-tier historical importance.
3. Zero-Latency Daily 10 vs. Just-In-Time (JIT) Long-Tail Synthesis
Stories that do not advance to Stage 2 are not discarded. Stage 1 still writes a lightweight standby card complete with its category, region, objectivity rating, and publisher attribution.
When you open Lynto for your Morning or Evening Daily 10, our serving engine selects strictly from pre-warmed Stage 2 cards. Because all 10 cards are already synthesized and localized, your daily edition opens with zero generation latency.
However, if you explore deeper packets beyond your Daily 10 or browse specific category feeds, our candidate selector prioritizes topic and regional relevance over pre-warmed status. If a highly relevant niche story is still in standby mode, our edge layer triggers Just-In-Time (JIT) synthesis on demand:
- Atomic Claiming: The edge worker atomically transitions the standby card into an active processing state so no other worker duplicates the job.
- Single-Locale Fast Path: Instead of generating every supported translation upfront like Stage 2 does, JIT synthesis generates only the reader's active language for minimal latency.
- Concurrent Reader Coalescing: If two readers open the same standby story at the exact same moment, the second request waits on the in-flight synthesis rather than firing a second AI request.
- Permanent Caching: Once JIT synthesis finishes, the card is permanently promoted to completed status so every subsequent reader gets an instant cache hit.
4. What We Optimize For (And the Trade-Offs We Accept)
Every queue architecture involves explicit trade-offs. By splitting ingestion into Stage 1 triage, Stage 2 pre-warming, and JIT long-tail synthesis, we optimize for predictable unit economics and sub-second loading on the Morning and Evening Daily 10.
The trade-off we accept is a brief 2-to-4 second synthesis pause the very first time a reader pulls a deep, low-volume niche story that did not qualify for Stage 2 pre-warming. For a product designed around a calm, finite daily briefing rather than a high-frequency wire terminal, keeping 80% of unviewed wire noise out of the heavy synthesis queue is what makes deep multi-source analysis sustainable.