Everychat.ru - quick chat on your site

    Everychat.ruGreetings, habrasociety! Today I want to talk about one of my projects that I have been working on lately, which is called just for fun (and experience). During its development, I used several new technologies, which I want to talk about in this topic;)



    Background



    I always loved real-time communication. But often on sites there is no way to communicate with other visitors in this way. I decided to fix this problem and create a service that will allow website owners to easily create a chat by simply adding a small html-code to the page.

    Description



    After registration in the system, you are given a widget code, the appearance of which you can configure from your account. That's just it.

    Technology



    image

    As a server for chat, I decided to use Tornado, which I recently wrote about on a hub The architecture is quite simple: users “subscribe” to chat messages, and then as soon as a new message appears, it is sent out throughout the queue. Redis was chosen as the repository for the message queue itself. The user’s account is written on the wonderful RubyOnRails framework. Nginx acts in this case in several roles: as a reverse-proxy for Tornado, provides static for chat and serves the RoR application.

    If you like it, then you are welcome: EveryChat
    Thank you for your attention.

    Demo - this is a chat on the main site,

    please do not judge strictly for the design. I am not a designer.

    Also popular now: