Currently the backend has a thread which polls the database every 5 seconds in order to assign rides. Rework the thread to use channels to be notified of changes to the database. Every time someone drives, rides, or unattends an event the channel should be pumped, the thread woken up, and the rides info reconciled.
Currently the backend has a thread which polls the database every 5 seconds in order to assign rides. Rework the thread to use channels to be notified of changes to the database. Every time someone drives, rides, or unattends an event the channel should be pumped, the thread woken up, and the rides info reconciled.