Загрузка...

System design interview question #fyp #tech #learn #explore #viral #trending

Answer :Notifications are mandatory in almost every application.
.
In our project, notifications are sent whenever an important event happens in the system (like order placed, OTP generated, payment success, etc.).
Flow:
1️⃣ Event Happens in the System
Whenever a user performs an action (like order placed, payment success, OTP generated), the application triggers a notification event.
2️⃣ Event Sent to Message Queue
Instead of sending the notification directly, the system sends the event to a message queue like Apache Kafka or RabbitMQ.
This makes the process asynchronous and keeps the main application fast.
3️⃣ Notification Service Reads the Event
A separate Notification Service listens to the queue and consumes the event when it arrives.
4️⃣ Prepare Notification Message
The service identifies the user, notification type, and message content that needs to be sent.
5️⃣ Send Notification Through Channels
Based on the requirement, the notification is sent through:
Push notification
Email
SMS
In-app notification
6️⃣ Push Notification Provider
For mobile apps we use services like:
Firebase Cloud Messaging (Android/Web)
Apple Push Notification Service (iOS)
7️⃣ Store Notification in Database
Notifications are also saved in the database so users can see them later in the notification section of the app.
8️⃣ Retry if Notification Fails
If sending fails due to network or provider issues, the queue retries automatically to ensure reliable delivery.
.
Short answer:
Whenever an important action happens in the system, we publish a notification event to a message queue. A dedicated notification service consumes that event and sends the notification to the user via push, email, or SMS using services like Firebase or APNS. This asynchronous design keeps the main application fast and ensures reliable notification delivery.
.
#fyp #explore #viral #trendig #tech

Видео System design interview question #fyp #tech #learn #explore #viral #trending канала Black Cask
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять