HQ Trivia in a nutshell, what are the monthly infrastructure costs?

Next Story

How E-Learning Benefits from Video Streaming

HQ Trivia is a highly popular game that appeared 1 year ago and gather 2 million users playing at the same time. The company behind that game has recently raised new funding $15 million and being valued $100MM. What a great success!

Internet become flooded with questions what is the secret behind that game? Why it’s so popular? How it was built? Everyone wants to know how to repeat the success!

I will try to uncover up some uncertainty, show the numbers behind the game and calculate the monthly infrastructure expenses for servers.

Let’s assume HQTrivia has next parameters:

  1. 1.000.000 users play everyday, in total 30 games in a month.
  2. Average game duration is 15 minutes a day.
  3. Video quality: bandwidth is 0.5 mbps (around the same like HQ trivia has)
  4. Video delay is less than 2 seconds

I would divide estimation for 2 parts, one is everything related to video streaming, another one is for gaming and text chat.


What about video streaming?

Let’s use Red5Pro video streaming server as an example. Red5Pro server will allow us to stream video to 1,000,000 users. This is not trivial task and will require running great amount of servers in a cloud. Let’s calculate expenses for Amazon Cloud. Amazon web services calculator will be used.

We will need 571 Amazon C.5 large instances. Game video stream itself will run 15 minutes a day, but we need to prepare everything in beforehand so I assume servers will run 45 minutes a day. That is 23 hours in total, cost is $1120/month.

Next is licensing costs. Licensing from Red5Pro for 571 servers will cost $31,350/month.

And the biggest expense is traffic, we can find out that monthly video traffic will be 1,572 TB (Terabytes), yes it is a huge amount of data. The cost is $84,377/month. And when you book so many servers, Amazon will ask you to pay premium for support, which is additional $6,174/month.


Gaming part

I would suggest to create servers in Golang technology and roughly it will support 20K users per one Amazon AWS C5.4xlarge server. Meaning we need to run 50 servers, 23 hours in a month, the cost is $1,564/month

And we will have at least one separate server for database and one main server running 24/7, that will roughly add let’s say $500/month on top.


Costs Summary

Video streaming servers: $1,120

Video streaming Red5Pro licensing: $31,350/month

Data traffic: $84,377/month

Amazon AWS support: $6,174/month

Gaming servers: $2,064/month


Total cost: $125,085 or $0.13 dollars per user per month for servers infrastructure.

Of course that is not whole costs for the company to run HQ Trivia, but at least it gives you rough idea what are their servers infrastructure expenses.


Here in Trembit we are passionate about mass scale video streaming systems, so don’t hesitate to reach us out and share your ideas at: sz@trembit.com