#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.