Skip to content
Theory · Notification system · lesson 4 of 11

API and data model

A notification system has three contracts. The first is with the services that send notifications and later ask for their status. The second is with campaigns: marketing creates a campaign, and a scheduler feeds its audience in batches. The third is with the providers, which send delivery reports. Three stores are built for these contracts: settings, keys and the log.

In this lesson

  • The send call
  • Campaigns and reports
  • A queue message
  • Settings — PostgreSQL
  • Keys and caps — Redis
  • The log — Cassandra
  • Common mistake
  • Key points