My favorites | Sign in
Project Home Wiki Issues Source
Search
for
Chat  

Phase-Design
Updated Dec 15, 2007 by piotr.cz...@gmail.com

#RPCs and design of the chatbox

Introduction

Features:

  • chat must not be db-heavy
  • deleted messages must also disappear in the client

RPCs

  • chatbox_list - list everything about chatbox
  • chatbox_list_since - list messages since a given message id
  • chatbox_post_msg - post chatbox message and moves oldest message to archive
  • chatbox_delete - delete one or more messages

Design

This is pretty simple. There is only one table. Shouts are inserted into para_chat table. Shout insertion generate events. Shout deletions generate events. And so it goes.


Sign in to add a comment
Powered by Google Project Hosting