昨天面试碰到一个题目,来自一家在线文档公司。
Design a snapchat like application.
can send text and image
can have more than one recipient
remove message when all the receiver has seen the message from the server side.
What does the system look like?
Q: How do we make sure we do not lose any message?
Q: How exactly do we keep track of the total number of messages delivered and which service keeps track of the total delivered message count?
Q: How do we make sure we do not lose any message?
这部分跟 whatsapp msg 不丢失是一样的。
Q: How exactly do we keep track of the total number of messages delivered and which service keeps track of the total delivered message count?
这部分需要一个 SQL DB 实时更新 message count