In the past few days, I have learned the relevant knowledge of distributed real-time recommendation systems, and learned that Douyin and Alibaba have relatively good systems in this regard. The following are a few sketches I designed after some study, recorded and kept for reference.
1 Overall Architecture Figure
2 Use MyCat to realize database partition and sub-table, and read-write separation.
3 Use Redis to implement query data caching.
4 When the amount of database data is large, the database is split into a real-time database cluster and a historical database cluster.