Skip to content

Latest commit

 

History

History
62 lines (40 loc) · 2.53 KB

File metadata and controls

62 lines (40 loc) · 2.53 KB

getnotified

English | Русский

Name: Receiving push notifications.

The push notification scenario in the delivery service app involves sending real-time notifications to users through SignalR.

Process pattern: maintenance

Responsible modules: client application, backend service

Platform version: v0.1

Dependencies

Depends on

Backend service Process
adminbackend sendpush

Influences on

Backend service Process
notificationsbackend sendnotifications

Process description

  • From the receiver POV, the app receives and displays the notification on their device, providing relevant information about their order status or other updates.
  • From the sender POV, the app sends notifications to users based on their order status or other relevant updates, using SignalR to ensure that notifications are delivered in real-time.

maintenance_overall

Step-by-step execution plan of the process

  • Getting push notifications from receiver POV:
    • Receiver opens the app.
    • The app establishes a connection with the SignalR server.
    • The server sends push notifications to the app.
    • The app displays the notifications to the user.
  • Getting push notifications from sender POV:
    • Sender opens the app.
    • The app establishes a connection with the SignalR server.
    • The sender sends a push notification to the server.
    • The server sends the notification to the receivers who are subscribed to that event.

The step-by-step execution of the process is identical to the rateorder process (except that the customer does not rate the order, but simply reads the notification):

customer.rateorder

Sequence diagrams

notificationsbackend.getnotified

Data structures

Object DTO
Notification NotificationDTO
Customer CustomerDTO