FriendsWhoAreCoders / Society-eCommerce

1 stars 0 forks source link

Discussion on Notification service #4

Open manjuavadhani opened 10 months ago

jayanthsd commented 10 months ago

Putting thoughts in mind here so that I don't forget and we can take this up during discussion.

Possible Responsibility:

OTP during registration. Notification to Admin on User Registration. Letting Seller know after a successful order. Letting Buyer know after seller accepts the order. Letting Seller know after successful payment. Sending Order invoice to buyer Sending reports to email. Profile change email alert. Password change OTP. Password changed successfully alert. New device login alert. Publishing the new menu from the favorite seller. Monthly reports to admin. Monthly reports to seller. Inventory low alert

jayanthsd commented 10 months ago

Workflows:

  1. SMS Notification to Phone during user registartion.
  1. Registartion Page
  2. User Details(Phone Number)
  3. On click on validate
  4. Send SMSOTPValidation to Message Broker
  5. Notifiation Service to pick the event.
  6. Send SMS Notifiation
  1. Email Notification to EmailId during user registartion.
  1. Registartion Page
  2. User Details(Email Id)
  3. On click on validate
  4. Send EmailOTPValidation event to Message Broker
  5. Notifiation Service to pick the event.
  6. Send Email Notifiation
  1. User Creation Notification to Admin.
  1. Registartion Page
  2. User clicks submit after providing details.
  3. User Service creates the user.
  4. User Service sends UserCreated event to Message Broker.
  5. Notifiation Service to pick the event.
  6. Send Mobile InApp Push notification if admin user is using the app.
  7. Send Web Notifiation if admin is logged in via web.
  8. Send Mobile App Push notification if admin user is connected.
  1. Approval Notifiation to User.
  1. admin Login
  2. pending approvals tab
  3. list of requests with approve and reject button.
  4. after admin approves the user, UserRegistrationApproved event to be sent Message Broker.
  5. Notifiation Service to pick the event.
  6. send Mobile App Push notification if user is connected.
  7. send Mobile InApp Push notification if user is using the app.
  8. Send Web Notifiation if user is logged in via web.
  1. Rejection Notifiation to User.
  1. admin Login
  2. pending approvals tab
  3. list of requests with approve and reject button.
  4. after admin rejects the user with reason, UserRegistrationRejected event to be sent Message Broker.
  5. notifiation Service to pick the event.
  6. send Mobile App Push notification if user is connected.
  7. send Mobile InApp Push notification if user is using the app.
  8. Send Web Notifiation if user is logged in via web.