Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 716 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 716 Bytes

ReChat

RethinkDB + Tornado Chat Demo

Using Async RethinDB Driver , with change feeds and Longpolling. Change feeds makes

How it works

  • When new chat message arrived it is inserted into events table RethinkDB automatically notify to the changfeed listeners.
  • It makes massaging persistant and scalable.
  • No need to track previous messages cursors thanks to changefeeds.
  • Better maintainability vs combo of Queues and Database architectures.

Tested with rethinkdb 2.0RC1 and tornado 4.1.0 . Also included python rethinkdb drivers from latest commit for easy testing.

#Setup

easy_install install tornado==4.1.0
#Or 
pip install tornado==4.1.0

#Running

python rechat.py