The challenge
A large job-search platform sends personalized job alerts by email, SMS and push: more than 17 million messages a day across 90 million subscriptions.
Two pressures shaped the system. The first was engagement and deliverability: sending the same frequency to everyone annoys people who’ve stopped reading and erodes the sender’s reputation with mailbox providers. The second was volume and timing: every message is generated from fresh recommendations and has to arrive at the right moment, within the capacity of the platform and its providers. Cost was a constant constraint on both.
I’ve worked on this platform since 2016, with a small team, first as a developer and later as its technical lead and architect.
The approach
Three parts work as one loop.
- Decide how often. An engagement engine adjusts each subscriber’s message frequency to how they actually engage. The rules are configuration, not code, so the product team can change them without a release.
- Deliver on time. A scheduler plans the next 24 hours in 15-minute slots and spreads peaks across the available capacity, treating delivery as an optimization problem instead of a queue that grows. Workers generate each message from a local copy of subscriber data and deliver it through several providers.
- Learn from every event. Delivery, open, click and bounce events, more than 35 million a day, flow back into the engagement engine and into the analytics platform.
Key decisions and trade-offs
Plan the load instead of reacting to it. Queue-based systems handle peaks by falling behind. Planning a day ahead turns “we’re late” into a solvable distribution problem, at the cost of a more complex scheduler.
Absorb spikes, protect the database. Provider events arrive in bursts, so they’re buffered and written in batches rather than one by one. Engagement decisions easily tolerate the short delay.
Keep the hot path local. Copying subscriber data next to the message generators adds a synchronization job but removes a network call from every one of the 17M+ messages a day.
Results
- Lower sending cost and complaint risk. Messages go to people who actually read them, and undeliverable addresses are excluded automatically.
- Bad sends stopped automatically. A kill switch halts sending when something looks wrong, then restarts with small test batches and returns to full load only once the results look healthy.
- No single-provider dependency. Email is routed across several providers, which adds resilience and keeps sending costs negotiable.
- Faster experiments. The product team can change frequency strategy without an engineering release.
- Reliable at scale for a decade. In production since 2016, now handling 17M+ messages and 35M+ events a day.
What I’d do differently today
- Move decision logic into a dedicated, fully tested service, with the database holding state only.
- Event-source engagement, building each subscriber’s state from the event stream instead of shared counters.
- Let a model propose each subscriber’s frequency, with the rules kept as guardrails.
- Use AI agents for routine changes. The team already prepares configuration changes with a guided AI workflow and a human review step.