[x] 2a. BEWS: Check if path is defined localhost:8080/ (actuator, delta, system, ground_truth, rrt, masked), otherwise 404
[x] 2b. BE: Check if timestamp < lastUpdate
[x] 3a. BE: 2 true -> return data (response with status 200, "ok")
[x] 3b. BE: 2 false -> sleep for 500ms and re-invoke the function
[x] 4b. BE: Repeat 3b untill 3a is achieved or a counter of 10 is achieved (currently 10 to make a total of 5s on the backend before sending a 304, "not modified" response)
[x] 5. FE: Handle response (reload widget on 200 response
[x] 6. FE: Re-send the request for new data with adjusted datetime if successfull
Script
[x] Python generator script to mimic sending data updates over RabbitMQ using dummy data
Long-Lasting requests
[x] 1. FE: Send request
[x] 2a. BEWS: Check if path is defined localhost:8080/ (actuator, delta, system, ground_truth, rrt, masked), otherwise 404
[x] 2b. BE: Check if timestamp < lastUpdate
[x] 3a. BE: 2 true -> return data (response with status 200, "ok")
[x] 3b. BE: 2 false -> sleep for 500ms and re-invoke the function
[x] 4b. BE: Repeat 3b untill 3a is achieved or a counter of 10 is achieved (currently 10 to make a total of 5s on the backend before sending a 304, "not modified" response)
[x] 5. FE: Handle response (reload widget on 200 response
[x] 6. FE: Re-send the request for new data with adjusted datetime if successfull
Script