📜 ⬆️ ⬇️

Everychat.ru - fast chat on your site

Everychat.ru Greetings to you, habrasoobschestvo! Today I want to talk about one of my projects that I was engaged in recently, what is called just for fun (and experience). When developing it, I used several new technologies, which I want to talk about in this topic;)



Prehistory


')
I have always loved real-time communication. But often the sites do not have the opportunity to communicate with other visitors in this way. I decided to fix this problem and create a service that will allow site owners to easily create a chat by simply adding a small html code to the page.

Description



After registering in the system, you are given a widget code, the appearance of which you can customize from your account. Here, in general, that's all.

Technology



image

As a server for the chat, I decided to use Tornado, which I recently wrote about in Habré. The architecture is quite simple: users “subscribe” to chat messages, and then as soon as a new message appears, it is sent to the entire queue. Redis was selected as the storage for the message queue itself. The user's account is written on the wonderful framework RubyOnRails. In this case, Nginx acts in several roles: as a reverse-proxy for Tornado, gives statics to the chat and serves itself a RoR application.

If you like it, you are welcome: EveryChat
Thanks for attention.

The demo is a chat on the main site.

I ask you not to judge strictly for the design. I am not a designer.

Source: https://habr.com/ru/post/73829/


All Articles