New music portal ...)

    Perhaps it seems to me, or maybe not, but recently everyone has been doing that flash games and Internet radio ... From this point of view, our project does not shine with originality ...) But still we tried to make it its unique and lay in it great opportunities for potential development. How much we succeeded - time will tell, but for now I want to talk a little about the work actually done.
    So what kind of project is this. And this project is a cross between an Internet radio and a flash game by a social network.

    Musical component


    The main thing on the portal is of course the music. Her a lot. And there will be even more. And if there is music, then you need to listen to it somehow! For this purpose, we made a special player, the main charm of which is that the stream does not interrupt during the transitions on the site, which is achieved by a banal pop-up. The uniqueness of the player lies in the fact that it controls the radio from any of the players, from any open page of the portal or from the popup itself.
    So far, everyone can use the portal in full and for free. Just what you need to register. Although in the future it is planned to divide users into paid and not very; naturally, with the restriction of some functions for the latter.
    For non-registered users, there are several predefined radio streams. Registered users have access to their own playlist, in which the user adds music, wandering through the music archives ...

    Social component


    Communities are also music-oriented and are mainly designed to create announcements of any musical events and write reports on past events. Or just photo-video-audio reports. However, multimedia posts can only be created by community authors, or privileged users - “photographers” or “DJs”.
    Along with communities, the “sociality” of the project is given to user profiles - and in fact, not just profiles, but full-fledged personal sites with data about the user, his photo and video galleries and personal playlists.
    Another noteworthy feature of the portal is internal IM. It’s seemingly a dormitory and a dormitory, but it’s important that it is built on the basis of a jabber server, which in the future will open it to the world and, possibly, even log into the portal using any jabber account.
    And since we are talking about technology, I will briefly, finally, describe the technical side of the project. Then there will be a couple of tedious paragraphs with technical details, you can not read them.)

    Technical details


    The project is written in PHP5, the MySQL database. XSLT is used as a template engine. Nginx Server
    Slightly lifting the veil of secrecy, I will say that the kernel is built in such a way that each page is assembled from a number of separate modules using SSI, which allows you to flexibly distribute the load on several physical servers. Moreover, Nginx itself is engaged in SSI assembly and XSLT transformation, which allows using Memcached to cache the result of each module separately and thereby minimize the use of PHP.
    Thus, the process of building any page is as follows: the site receives a request, determines with a routing system a list of modules required on this page, collects XML with a set of SSI connections and gives it to Nginx. Nginx checks each connection - if there is one already in Memcached - immediately gets it out of there and goes on, if not - it contacts the specified address and receives XML in response with the results of the module, which is written to Memcached and will not be processed the next time for nothing.
    Well, then Nginx converts the "large" XML collected by the method described above into HTML using XSL templates cached in it. And ready-made HTML is issued to the user's browser.
    A separate server is also allocated for all static data - CSSs, pictures, the actual file content of the portal. There is nothing particularly interesting there - he only knows how to quickly give static. :)
    Naturally, this is only a fraction of the technical descriptions of the project, but about the rest - some other time. In the end, you can’t blurt out all the secrets at once ...;)

    Epilogue


    And in conclusion, it should be noted that, of course, the project is still far from ideal and lacks a lot, something is not very convenient, and indeed ... But I want to believe that over time everything will be! =)
    So - meet - http://madloud.com/

    Also popular now: