Menu

Notification Service, Part 3: Event-Driven Intake
📰

Notification Service, Part 3: Event-Driven Intake

DEV Community: microservices·Surhid Amatya·7 days ago
#wfw1Gb2U
#devtomicroservices#devto#dev#event#listener
Long article (527 words) — no AI summary yet.
Reading 0:00
15s threshold

The earlier overview post showed the notification flow as a diagram. This series opens each box and looks at how it works in the real service. We start at the front door: how an event turns into a notification.

The core idea

Other services never send notifications themselves. When something happens that a user should hear about (a KYC status change, a transaction update, an account lock, a password change, an OTP request), the service that owns it publishes an event to Kafka. The notification service consumes those events and decides what to send and where.

That keeps business logic and delivery apart. The service that moves money has no idea what a push token or an SMS provider is. The notification service has no idea how a transaction works. Neither has to.

What an event carries

Every event type has its own Kafka topic and its own message shape, but they share some fields:

An eventId , unique per event.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.