How it works


    Today we offer all listeners of Frodio , and those who have not yet familiarized themselves with the best broadcasting system on the Internet, to plunge into the world of technical details and find out how, by whom, and what features are used by users of our platform.

    It is worth starting with the fact that Frodio works entirely on Selectel's infrastructure . All servers are located on Selectel's virtual cloud machines, the price / quality ratio of which compares favorably with competitors' offers.

    We use the following technologies: Nginx + Starman + Mojolicious + Perl + MySQL.
    Broadcasting is done using Icecast and Liquidsoap .

    The whole system is divided into several parts:
    1.The system core server and the database
    2. Broadcast server
    3. The server for generating flows We will

    tell you more about each of them.

    The server of the system core and the database on which the system engine is located, the site Frodio.com, as well as the DBMS.
    Specifications: 2 GB of RAM, 8 CPU cores, 20 GB of space on the HDD.

    Average daily expenses in the Selectel cloud:
    Machine time 98.76 rubles. / 98.760 hours.
    Memory Consumption 24.41 Rub. / 49.134 GB * hour.
    Disk: requests for reading 1,61 rub. / 0.483 million units
    Disk: write requests 5.81 rubles. / 1.743 million pcs
    Disk: read volume 1.03 rubles. / 10.300 GB
    Disk: recorded volume 2.56 rubles. / 25.600 GB
    Disk: storage 6.00 rubles. / 1.201 TB * hour
    Network: received 14.01 rubles. / 70.050 GB
    Network: sent 24.31 rub. / 24.310 GB
    Total $ 178.50


    The broadcast server broadcasts using Icecast.
    Specifications: 2GB of RAM, 8 CPU cores, 1.5GB of space on the HDD.

    Average daily expenses in the Selectel cloud:
    Machine time 4.08 rubles. / 4.080 hour.
    Memory consumption 24.42 rub. / 49.154 GB * hour.
    Disk: read requests 0.02 rubles. / 0.006 million pcs
    Disk: write requests 0.33 rubles. / 0.099 million units
    Disk: read volume 0,00 rub. / 0.000 GB
    Disk: recorded volume 0.07 rubles. / 0.700 GB
    Disk: storage 1.92 rubles. / 0.384 TB * hour
    Network: received 22.93 rubles. / 114.650 GB
    Network: sent 397.71 rubles. / 397.710 GB
    Total 451.48 RUB


    The stream generation server “Frodio Transmitter” performs the following functions: broadcasting stations (including mixing tracks, crossfading, amplify, normalize, preparing and broadcasting playlists, rotation according to a given algorithm of tracks / jingles / commercials, generating streams in mp3 / aac + / ogg), relaying third-party streams (apmlify, normalize, transcoding to any format mp3 / aac + / ogg stream, changing id3 tags, broadcasting backup streams), creating live inclusions in broadcast and relay streams.
    Specifications: 4GB of RAM, 8 CPU cores, 164GB of storage space on the HDD.

    Average daily expenses in the Selectel cloud:
    Machine time 104.33 rub. / 104.330 hours
    Memory consumption 48.84 rub. / 98.308 GB * hour.
    Disk: requests for reading 1.45 rubles. / 0.435 million units
    Disk: recording requests 1.02 rubles. / 0.306 million units
    Disk: read volume 1.68 rubles. / 16.800 GB
    Disk: recorded volume 0.35 rubles. / 3.500 GB
    Disk: storage 32.39 rub. / 6.482 TB * hour
    Network: received 13.84 rubles. / 69.200 GB
    Network: sent 105.02 rub. / 105.020 GB
    Total $ 308.92


    As you can see, each day of the existence of Frodio costs us an average of 940 rubles, which, given today's prices for such an infrastructure, is quite modest. Of course, with the growth of the user base, our expenses also increase, but the fact that we can easily scale (specifically, the stream generation server) with an increase in the number of radio stations makes the cloud profitable for us and convenient for Frodio users.

    Despite the fact that Selectel is a young company, we use this platform for our other projects. As you know, in any barrel of honey there is a fly in the ointment, and here are the moments that we would like to see in a well-worked out condition (we are sure that company representatives will pay attention to this):
    • Dynamically increase the size of the file system from the control panel, without client intervention in the partitioning structure of disk partitions;
    • There is no way to use a shared drive for multiple virtual machines (as is implemented by Amazon EC2);
    • Sometimes there are cases of selection of system resources in favor of more "gluttonous" customers;
    • Lack of shared data stores similar to Amazon S3;
    • There is no way to make copies of virtual servers from snapshots.

    We want to believe that the company will cope with these temporary problems and will provide an excellent competitive product at a global level.

    Nevertheless, we continue the discussion of the Frodio platform , where there are many more interesting details. Several graphs show the overall workload of the platform:

    1. The number of users online (more on that below)

    2. The number of queries to the MySQL database


    Actually, let us consider in detail the audience of Frodio - respected listeners, which are growing every day.



    Currently, the average number of listeners is 427 per day, of which 130 use the Frodio.com web interface for this . Peak indicators: 450 listeners per day, of which 165 from the site.

    In total, almost 5,000 users are registered on Frodio, from 49 countries of the world. Russia and Ukraine are leading, but also abroad, in the USA, Great Britain and Europe, they also listen to interactive radio.



    We had two main periods of new registrations: at the end of October last year, more than 500 people came, which was due to the opening of the beta version, and another 500 people - at the end of last month, when we first talked about Frodio on Habrahabr.

    Almost 1,100 people installed the Frodio iOS application and logged into their account, becoming regular listeners of our radio stations.

    Over the entire existence of the Frodio platform, 15,710 likes of unique tracks were made (total more than 60,000 likes), and more than 3,000 unique tracks received user comments (more than 10,000 comments in the system).

    The social networks that Frodio users connect to their account, in order of popularity:
    Facebook - 1134
    Vkontakte - 1000
    Twitter - 778

    Last.fm - 554 (which is interesting, if earlier scrobbling was carried out in 324 accounts, now there are only 10 of them - there’s a loss in person popularity of Last.fm)
    Soundcloud - 188
    Google Buzz - 95
    LinkedIn - 50


    Of Frodio, about 35,000 likes and statuses were posted to social networks:
    Last.fm
    - 14,214 Twitter - 9261
    Facebook - 6854
    Google Buzz - 4109


    This is how Frodio user statistics look like in numbers, but here they are in graphs:




    But besides users, we have one more “litmus test” of Frodio, namely, radio stations.

    Now we have 47 stations, of which 6 are broadcast by Frodio (Station 2.0, ХХФМ, Bukvario, Ethnogenesis, Z, Courage Bambey), and the rest are relayed. Another 9 stations are working in test mode.

    What does the statistics of the most popular radio stations look like:
    Stations 2.0 (peak - 310, now - 167)
    Z (peak - 76, now - 21)
    Courage Bambey (peak - 67, now 8)
    HHFM (peak - 55, now 31)
    Revoice (peak - 55, now 10)
    NCRadio (peak 34, now 6)
    LoungeProject (peak 33, now 9)
    K-Rock (peak 31, now 5)
    DnBHeaven (peak 31, now 14)
    Kiss FM (peak 28, now 18)
    EL Station (peak 24)
    Ethnogenesis (peak 22)
    Alter Radio (peak 22)
    Bookvario (peak 20)
    16bit (peak 19)


    As for the various performers, during the existence of Frodio our listeners heard: 48,153 different performers who performed 167,934 tracks. In total, at all stations, we have more than 2,069,011 rotation of tracks.

    On this, the data regarding the internal work of Frodio is almost coming to an end. But this does not mean that we have nothing more to say, go to Frodio.com - turn on the radio station and enjoy!

    We would like to mention separately our shortener links frd.io, which are actively used and during its life more than 20,000 different links were reduced - mainly internal links from Frodio.com

    462 people wrote to us in feedback, for which we say separately “Thank you ! " to each of them. We are just starting to develop and bring the field of interactive broadcasting to the kind that we imagine, so every opinion plays an important role for us.

    And finally, a large piece of infographics, so beloved by usernames, which clearly shows how Frodio works. For those who want to know more details firsthand, we can offer to listen to a podcast with one of our developers on Habrahabr.

    image

    More than radio, better than radio -Frodio only .

    Also popular now: