-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Milestone
Description
The Central Tagger & Data Hub
The backend API's role expands from a simple data provider to the central nervous system for user state.
- Responsibility: To track and store user attributes and behaviors that are valuable for segmentation. This data will be stored directly in our own database.
The "Journey" Engine
This service becomes the heart of our automated engagement, replacing the concept of external "Journeys" or "Sequences."
- Responsibility: To run scheduled jobs (e.g., cron jobs) that query our user database to identify segments and trigger notifications.
- Enhancements:
- Segmentation Logic: The service will contain the logic to build complex queries. For example: "Find all
standardUsers who havefollowedTopicsCount > 3but whoselastSeenAtis older than 14 days." - Payload Personalization: Upon identifying a user segment, the service can perform further lookups (e.g., fetch the names of their most followed topics) to create highly personalized notification payloads.
- Dispatching: It will send the
userIdand the constructedPushNotificationPayloadto a new, internal "Notification Dispatcher Service."
- Segmentation Logic: The service will contain the logic to build complex queries. For example: "Find all
The Notification Dispatcher Service
This new internal service is the single point of contact for sending a notification.
- Responsibility: To abstract away the push providers. It receives a
userIdand aPushNotificationPayload. - Logic:
- It queries the
PushNotificationDevicecollection for the givenuserId. - It determines the correct provider (
firebaseoroneSignal) and retrieves the corresponding device token. - It makes the final API call to the appropriate external provider (FCM or OneSignal) to deliver the message.
- It queries the
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Backlog