References:
- Architecture articles: https://yq.aliyun.com/articles/698301
- Model articles: https://yq.aliyun.com/articles/701593
- Implement article: https://yq.aliyun.com/articles/710363
Architecture design:
Storage model design:
Optimization group scene
For a group scene, it is necessary to put a message to each member of the group inbox timeline it? I feel no need to, ah, if many members of the group, that the group message to all group members to synchronize the Inbox is very time-consuming, poor performance. Reasonable approach should be the scene for the group, does not require the group message to all group members to synchronize the inbox, but instead inform all members of the group sessions for a group of new messages, so that all devices of group members They are corresponding to the group session timeline pull message on the line.
How to withdraw support for the message?
Revocation message, the user's intention should wish to cancel the message. For the server, the correct logic should delete this message. My initial consideration is to withdraw a written message to the timeline. When reading the timeline, do some message filtering, a message corresponding to withdraw the message, can not be returned to the device side. You can also throw their own ideas.