You are on page 1of 4

Distributed Systems

-Assignment 2-

Online Medication Platform

Student: Pop Elisa Teea


Group: 30442
Teaching Assistant: Balc Diana-Maria
1. Conceptual Architecture of the distributed system
A new project was created to process the data from activity.txt, process them (convert to
JSON) and send over rabbitmq:

The backend app has a new Receiver class that processes the messages sent over by the
producer via rabbitmq. It receives the messages and processes the data received to see if any suspicious
activity is detected. If it is, a new object will be created and stored in the database. Besides that, the
message will be sent to the front end by using web sockets. Marked with green arrows below

On the backend, the websockets part requires a configuration and a message dispatcher. the
configuration sets up the endpoint so the messages can be sent over to the frontend. The message
dispatcher sets the client id with the destination prefixes such that only the caregiver whose patient has a
suspicious activity will receive the message. Marked with orange in the image below.

On the frontend, a connection with StockJS and Stomp was established, and an alert is
displayed when a suspicious activity is detected.
2. Build and execution considerations
To access the project on the cloud:
Frontend: ​https://lifeline-medapp.herokuapp.com/
Backend: ​https://lifeline-medapp-backend.herokuapp.com/

The following users can be used to be logged in as a specific role

Doctor:
Username: tabita
Password: Password1
Caregiver:
Username: amysteele
Password: Password1
Patient:
Username: leosullivan
Password: Password1

The alert shown when an activity takes longer than expected is the following:

You might also like