The idea:
Implement a nodejs server which polls the API and provides the polled data as webserver for liveview.
Benefit:
Remove the request load from the API, because liveview is executed in the browser client-side, which means that currently every open liveview session polls the API. With a nodejs server between, all clients poll the nodejs server and only the server polls the API.
We are more flexible on implementing the session between clients and nodejs server, for example using server-sent events (SSE) or websockets.
In the second step the nodejs server can do the calculation, which is needed over the runtime like number of pits or race gaps, where currently a client have to run all the time to calculate these values correctly
The idea: Implement a nodejs server which polls the API and provides the polled data as webserver for liveview. Benefit: