Speed, Load, Stability - In the Kajla Championship, players were able to answer live questions from the presen
The live broadcast was preceded by long preparations: we simulated tens of thousands of online players during load tests and optimized the server environment until we could be sure that every player would receive the question at exactly the moment it was presented.
According to the rules of the quiz, the response time was also included in the scoring, so every millisecond counted.
That's why we chose WebSocket technology and built a unique server environment behind the quiz.
It was a special challenge to create the Ngixn config, which confidently receives up to thousands of responses from players at a time.
We used NodeJS as the backend-side language: the application saved the result of the round into memory during the game, minimizing the number of database operations, thus increasing the speed further.
The presenter got his own admin panel where he could follow the game live and launch the next question.
The system eventually became fast as lightning and stable.



