M
M
meltmestnt2018-07-09 19:24:30
Video broadcast
meltmestnt, 2018-07-09 19:24:30

How does Twitch work?

It became interesting how Twitch works. I read their blog, but it's not very clear. I am interested in the process of transmitting video in real time, especially when there are some large streams that collect 100-200k viewers. How their servers are arranged, how they withstand such a load, how the video is transmitted from the streamer to viewers from all over the world, etc.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
W
Wexter, 2018-07-09
@Wexter

There are several servers that receive broadcasts from the streamer, servers take the video from them for transcoding to different resolutions, and the server stream is taken from them, giving video to clients, of which there can be many. Well, wide channels with a margin in this entire chain
. The picture is a little simpler, without encoding servers
Nimble_Streamer_Edge_Origin_servers.jpg

D
Dimonchik, 2018-07-09
@dimonchik2013

https://blog.twitch.tv/twitch-engineering-an-intro...

J
Johnny Smith, 2018-07-09
@Olek1

Automatic scalability of servers thanks to cloud technologies such as AWS and Azure, there are more of them when more, more and more are needed until there is not enough for everyone, and when the load intensity subsides, the servers also automatically switch to some other tasks or simply go into stand-by, they seem to breathe automatically after the users, and if the load increases again, they will reconnect again. By the same principle as high-loaded web sites work, for example, news ones, if there is some popular news, then everyone will quickly run to read it and the site will not be able to open for everyone, so that this does not happen and cloud services are invented. They are profitable because you do not pay for a bunch of hardware and admins who will monitor them,

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question