Goal
To continuously serve the most recent entry in the TrashTvArchillectHistory we have to query & send every 5 seconds the latest entry in the table ordered by time descending.
Context
For this issue, we assume, the investigation in #2 and #7 lead to the conclusion GraphQL + Kafka is the way to go.
In order to have something that updates our feed on the frontend, we need a websocket that sends us (ideally every time the table updates we query automatically) the most recent entry in this table sorted by time descending.
Tasks
[ ] create in api.py the websocket /history_latest which
[ ] is a GET
[ ] response is a defaultdict and looks like this:
Depends on #2, #7
Goal To continuously serve the most recent entry in the
TrashTvArchillectHistory
we have to query & send every 5 seconds the latest entry in the table ordered by time descending.Context For this issue, we assume, the investigation in #2 and #7 lead to the conclusion GraphQL + Kafka is the way to go. In order to have something that updates our feed on the frontend, we need a websocket that sends us (ideally every time the table updates we query automatically) the most recent entry in this table sorted by time descending.
Tasks
/history_latest
whichGET
defaultdict
and looks like this: