Scrivio Interview library
DesignAdvanced6 min read · updated 12 November 2026

Notifications in your company are sent by 25 services directly through different providers, and users complain about duplicate and excessive messages. Design a central notification platform and its adoption plan.

I would build a central platform that owns templates, preferences, consent, frequency caps and provider contracts, and change the contract so services send intents, events such as OrderShipped, rather than finished messages, which lets the platform deduplicate and combine them. Consent and legal requirements such as unsubscribe and regional rules are enforced in one place. Adoption comes from a client library and clear SLOs that make teams trust it, and migration starts with the highest-volume senders while we measure complaint and opt-out rates.

Why this question is asked

When 25 services each send their own notifications, nobody sees the whole picture from the user's side. A customer places one order and receives an order email, a payment email, a loyalty points email and two pushes within a minute, and still gets a marketing SMS after unsubscribing because one service kept its own list. Users complain, opt out of everything, and the important messages stop reaching them. Interviewers ask this question to see whether we can design a platform that solves the user's problem and get 25 teams to adopt it. In this answer, we will decide what the platform owns, change the contract from messages to intents, centralise consent and legal rules, design for trust with a client library and SLOs, and plan the migration with the right metrics.

1Why Duplicates Happen Today

Duplicate and excessive messages are not caused by careless teams; they are caused by the structure. Each service decides on its own to message the user, with no knowledge of what other services just sent. Each keeps its own copy of preferences, or none. Each has its own templates, its own provider account, and its own idea of what "unsubscribe" means. The result is that the user experiences the company as 25 voices that never talk to each other.

So the fix is not a better email library. It is a single place that sees every message a user is about to receive and can decide what actually gets sent.

2What the Platform Owns

The platform owns everything that should be the same for all senders. Templates, so branding, language and legal footers are consistent and editable without deployments. Preferences and consent per user, channel and category, as the single source of truth. Frequency caps, such as at most two marketing messages per day across all services. And provider contracts, so the company negotiates one email and one SMS contract at better volume prices, with one sender reputation to protect.

Services keep ownership of their business events and of deciding that something is worth telling the user. They no longer own how, when and through which channel it is said.

Step throughCentral notification platform
  1. Sending services (25)publish intents through the client library
  2. Intent intakeidempotency, schema validation, priority
  3. Decision engineconsent, preferences, caps, dedup, combine
  4. Templates and renderingbrand, language, legal footers
  5. Channel deliveryemail, SMS, push, provider failover
  6. Feedbackdelivery, bounces, opt-outs, complaint metrics

6 layers, from the top down. Step through them one at a time.

3Intents Instead of Finished Messages

The key design change is the contract. Today a service sends "email to alice@example.com with this HTML". On the platform, a service sends an intent: a structured event describing what happened and who it concerns, such as OrderShipped for user 123 with order 42, with a category (transactional or marketing) and an idempotency key. The platform decides whether to send, on which channel, with which template and when.

This is what makes deduplication and combination possible. If the order service sends OrderShipped and the loyalty service sends PointsEarned for the same order within five minutes, the platform can hold the second for a short window and combine them into one message: "Your order is on its way, and you earned 120 points". If two services emit the same intent, the idempotency key or a deduplication rule on (user, intent type, entity id) drops the copy.

Step throughTwo intents become one message
Order serviceLoyalty servicePlatformUser
intent OrderShipped(user 123, order 42)
intent PointsEarned(user 123, order 42)
check consent and daily cap
combine within 5 min window
one email: shipped + points

5 messages in order. Play them, or step through them one at a time.

The platform sees both intents, so the user gets one message.

4Consent and Legal Rules in One Place

Consent is where scattered sending does the most damage. Unsubscribe must work across all senders immediately; marketing to users who opted out can break laws such as the GDPR and ePrivacy rules in Europe or CAN-SPAM and TCPA in the United States, and requirements differ by region and channel, for example explicit opt-in for SMS marketing in many countries. The platform enforces these centrally: one consent record per user, category and channel, with the source and time of each change, unsubscribe links and handling built into every marketing template, regional rules as configuration, and an audit trail of what was sent under which consent. Legal and privacy teams review one system instead of 25.

5Earning Teams' Trust

Teams will only give up control of their messages if the platform is easier and at least as reliable as what they have. I would provide a client library for Java and Spring Boot, plus a plain API for other stacks, that makes sending an intent a single call, handles idempotency keys, retries and outbox integration, and comes with a local test mode. The platform publishes SLOs, for example 99.95 percent of transactional intents accepted, critical messages such as password resets delivered to the provider within 30 seconds at p99, and status visible per message, and reports against them publicly. Teams also need self-service: they can create and preview templates, see delivery results for their intents and debug why a message was not sent, such as "suppressed: user opted out of marketing".

6Adoption Plan and Metrics

I would migrate the highest-volume senders first, because they produce most of the duplicates and complaints and moving them shows results quickly. Typically the top five senders account for most of the messages. For each, we map their messages to intents and templates, run the platform in shadow mode to compare what it would send with what they actually send, then switch traffic category by category, starting with marketing, where frequency caps help most, and moving to transactional once reliability is proven.

Success is measured from the user's side: complaint rate (spam reports per thousand messages), opt-out rate, messages per user per day, and the share of messages combined or suppressed by caps, alongside reliability against the SLOs. If opt-outs drop after the first migrations, that evidence helps convince the remaining teams. New services are required to use the platform from the start, and direct provider access is gradually closed once the remaining senders have moved.

Step throughMigrating one sending service
  1. Map its messages to intents and templateswith the owning team
  2. Shadow modecompare platform decisions with actual sends
  3. Switch marketing messagescaps and consent apply
  4. Reliability within SLO?
    YesSwitch transactional messagesNoFix, keep transactional direct
  5. Close its direct provider accessmeasure complaints and opt-outs

5 steps in order. Play them, or step through them one at a time.

7Follow-up questions

What if a team insists its message must be sent exactly as it is, immediately?

Critical transactional messages, such as password resets or security alerts, get a category that skips combination windows, quiet hours and marketing caps, and a dedicated fast lane with its own SLO. The team still sends an intent and uses a platform template, but the rules for that category guarantee immediate delivery. That covers the real need without reopening direct sending.

Who owns the platform, and who decides the frequency caps?

A platform team owns the system and its reliability. Frequency caps and message priorities are product decisions, so they are set by a small group with product, marketing and customer experience representatives, using data on complaints and engagement, and changed as configuration. Separating these keeps the platform team from becoming the referee in every dispute between senders.

8Conclusion

In this answer, we saw that duplicate and excessive messages come from 25 services each deciding alone. We designed a central platform that owns templates, preferences, consent, frequency caps and provider contracts, and changed the contract to intents so it can deduplicate and combine. Consent and regional legal rules are enforced in one place, a client library and published SLOs earn teams' trust, and the migration starts with the highest-volume senders while we track complaint and opt-out rates.

What to say in the interviewAbout 90 seconds aloud

Open with

The core problem is structural: 25 services each decide on their own to message the user, with their own templates, preferences and provider accounts, so nobody sees what the user is actually receiving.

Then, if they want more

I would build a central notification platform that owns everything that should be shared: templates, user preferences and consent, frequency caps across all senders, and the provider contracts.

The most important design choice is that services stop sending finished messages and instead send intents, events like order shipped for user 123 and order 42, with a category and an idempotency key.

Because the platform sees every intent, it can drop duplicates, combine related intents within a short window into one message, apply caps such as two marketing messages a day, and choose the channel. Consent and legal rules, unsubscribe across all senders, opt-in for SMS marketing in some regions, audit trails, are enforced once instead of 25 times.

To get adoption, the platform has to be easier and more reliable than what teams have, so I would ship a client library that makes sending an intent one call with idempotency and outbox support, self-service templates and per-message status, and published SLOs, with a fast lane for critical messages like password resets.

Migration starts with the highest-volume senders, using shadow mode first, marketing before transactional, and I would measure success from the user's side: complaint rate, opt-out rate and messages per user per day.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "Notifications in your company are sent by 25 services directly through different...": https://scrivio-interview-library.netlify.app/architecture/backend-system-design/081d280f48/