Skip to content

idea1-消息记录 #8

@zxhchime

Description

@zxhchime

消息按时间分区,以某时间点&消息量为界限
将消息记录花费为冷分区、热分区
冷分区:历史特别悠久的消息,客户端本地保存历史消息,如果丢失查找冷分区,需要加载很久用户也能接受,分区容量可以很大
热分区:最近的消息,控制分区容量在一定范围内,保证就算db查找也能很快返回给用户

同时可以基于userId做分片、甚至某业务字段二次分片?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions