Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

idea1-消息记录 #8

Open
zxhchime opened this issue Feb 15, 2023 · 0 comments
Open

idea1-消息记录 #8

zxhchime opened this issue Feb 15, 2023 · 0 comments

Comments

@zxhchime
Copy link
Contributor

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant