A message center in an App will push a thumbs up to you by many people. after you click it in the message center, the number of messages is cleared. If not, this number is always added. If it is viewed, the counting starts again when someone likes the number. I want to know how to handle it in the background. this logic... A message center in an App will push a thumbs up to you by many people. after you click it in the message center, the number of messages is cleared. If not, this number is always added. If it is viewed, the counting starts again when someone likes the number. I want to know how the backend processes the data, how the logic is processed, and where the data exists in redis or mysql database tables.
Reply content:
A message center in an App will push a thumbs up to you by many people. after you click it in the message center, the number of messages is cleared. If not, this number is always added. If it is viewed, the counting starts again when someone likes the number. I want to know how the backend processes the data, how the logic is processed, and where the data exists in redis or mysql database tables.
Redis likes
Regularly synchronize the likes of redis to mysql in batches
Nosql, disks, or hdfs stores likes, such as who likes at what time. Useful for data analysis, tracking, and data verification
The above is a detailed explanation of how the App message prompts the background to process the content. For more information, please follow the PHP Chinese network (www.php1.cn )!