Monday, February 17, 2014

The Architecture

This article will be followed by more discussing my experience regarding designing a full featured online radio station.
This article targets mainly people with experience with the Linux operating system, let's start.

here is the full architecture of the solution, while it may seem complicated, it is not.

Normally, an online Radio Station should provide two services:

  • Continuous audio playing of track files.
  • Live broadcasting.
let's start with the continuous audio playing, in a happy world you would need only 3 players of the above diagram:

  1. Media Storage: that is basically the audio tracks that you want to stream saved in MP3 format (may other formats like OGG), locally attached SSD drives were used here.
  2. Media Streamer: that is the application that would access the audio file and read it (because it understands how to read it) and send the data to the streaming server, ICES was used for this role.
  3. Streaming Server: an application to multiply the data sent by the media streamer to the connected clients, thus, multiple users can here the same track, nearly in the same time, ICECAST2 used here.
But we are not in a perfect world, so some more players were needed:

  1. Resful Web service (Java Application): actually, this is the heart of the radio station, it exposes various web services to be consumed and used by the media streamer to select the next track or to display the currently one being played on the web interface, also, it is used to collect radio statistics collected from the ICECAST2 server.
  2. Database Engine: MySQL is used to store tracks and users metadata.
  3. Application Server: Tomcat is used to host a simple Java webapp that act as the web user interface for the radio.
  4. Media Discoverer: another simple Java Application that would detect new tracks and file them based upon their names and update the MySQL track metadata database, that app is triggered periodically every 15 min.
  5. Web Server: Apache was used as the only interface to the compartment, serving both the web traffic and the radio traffic from port 80 and serving administration tools from port 443.
  6. Administration Tools: various HTTP based tools like webmin, zabbix and iRedMail panels, all the tools run over HTTPS and protected by basic user authentication.
  7. Firewall: UFW console interface to IPTABLES was used to restrict access to ports 80, 443 and 22 only.
New articles will follow to discuss the installation and configurations of each of those player. 

2 comments:

  1. Online Radio luisteren I surely acquiring more difficulties from each surprisingly more little bit of it, by the way thank for article. if you need then come to us!

    ReplyDelete
  2. Thanks for a very interesting blog. What else may I get that kind of info written in such a perfect approach? I’ve a undertaking that I am simply now operating on, and I have been at the look out for such info. Radio 538

    ReplyDelete