IronicUsername / trashtv1

1 stars 1 forks source link

Create webhook `/history_latest` #4

Open IronicUsername opened 2 years ago

IronicUsername commented 2 years ago

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