Since a DB connection is not released for the duration of an SSE stream, there shouldn’t be any DB queries within such SSE handling. Therefore no DB queries should happen when streaming.
Currently Game Stats are always retrieved via an event source. Although enough time since game report has passed to just request stats traditionally. For that case—especially to remove DB queries for the even streaming—there should be a new endpoint to get game stats via a simple GET.
It is the upon the client to decide on whether or not game stats processing could still take place and therefore request the streaming source.
Since a DB connection is not released for the duration of an SSE stream, there shouldn’t be any DB queries within such SSE handling. Therefore no DB queries should happen when streaming.
Currently Game Stats are always retrieved via an event source. Although enough time since game report has passed to just request stats traditionally. For that case—especially to remove DB queries for the even streaming—there should be a new endpoint to get game stats via a simple GET.
It is the upon the client to decide on whether or not game stats processing could still take place and therefore request the streaming source.