Open willnotwish opened 1 day ago
Before I think about adding (for example), a Vue app, I need to ensure that the visualisation view is ready. It is very confusing and difficult to make sense of the data if the race has already started before the visualisation is ready to display progress.
The web app should be responsible for persisting the Race record to the database. The background (sidekiq) process should only be scheduled when the visualisation has loaded.
The visualisation (actually races#show
) is responsible for starting the race. There should be a button for this purpose. It makes a XHR request to the server.
We need a new business transaction to start the race.
Use an event broker (eg, pubnub, pusher, ably or a custom solution) to update a js component showing a visualisation.