Notifications · architecture review01 / 10
  ###    #####    #####
 ## ##   ##  ##   ##  ##
##   ##  ##   ##  #####
#######  ##  ##   ##  ##
##   ##  #####    ##   ##

We move notifications into their own service

A proposal for where notifications live, and who owns them.

// Platform team · Nordlys · 1 December 2026

Notifications · architecture review02 / 10

Contents

  1. 01Now: how it works today
  2. 02The proposal: notifications in their own service
  3. 03The number: 300 ms instead of 2.4 s
  4. 04The choice: three options and their risks
  5. 05The decision: who owns what
Notifications · architecture review03 / 10

Now: how it works today

What happens

The Order API sends the email and push notification itself, in the same call as the order.

The order is not finished until the last message has been sent.

What it costs

2.4 s at p95 on the order call.

A slow email provider slows down the whole order.

Notifications · architecture review04 / 10

Notifications
belong on
their own.

Notifications · architecture review05 / 10

300 ms

95 percent of notifications are sent in under 300 ms, against 2.4 s today.

// measured in staging, week 46, 1.2m calls

Notifications · architecture review06 / 10

The proposal: events and a separate service

┌────────────┐      ┌────────────┐      ┌────────────────┐      ┌────────────┐
│ Order API  │      │ Events     │      │ Notification   │      │ Mail, push │
│            │  ──→ │ (queue)    │  ──→ │ service        │  ──→ │ and SMS    │
└────────────┘      └────────────┘      └────────────────┘      └────────────┘

The Order API writes an event and moves on. The notification service sends afterwards, so the order never waits for email.

Notifications · architecture review07 / 10

Three options

                │ Keep             │ Queue            │ Own service
────────────────┼──────────────────┼──────────────────┼────────────────────────
Latency p95     │ 2.4 s            │ 0.9 s            │ 300 ms
Order flow      │ Yes, waits       │ No               │ No
Biggest risk    │ Waits on mail    │ Two queues to run│ New team to staff
Verdict         │ No               │ Maybe            │ Yes

// The choice is a separate service. We pay with running costs and a new team, and get 300 ms.

Notifications · architecture review08 / 10

Three steps, and each can be stopped

Week 46

Measure in staging

1.2m calls measured before we move anything.

Week 2

Pilot

One customer type runs on the new service. Bugs show up here first.

Week 4

Move traffic

The rest of the traffic moves once the pilot has held.

// The biggest risk is staffing. The pilot shows whether we can run it.

Notifications · architecture review09 / 10

Who does what

Platform team

Runs the notification service and the queue, and staffs the team that carries it.

Mette Sørensen, product owner

Sets the priority of customer types in the pilot and says yes to moving the traffic.

Order API team

Writes the event instead of calling email and push directly.

Notifications · architecture review10 / 10

We build it as a separate service.

Decision

Notifications move out into their own service.

Owner

The platform team, with Mette Sørensen as product owner.

Next

Pilot for one customer type in week 2, traffic moves in week 4.

// Contact: mette@nordlys.example