Auction feature on Instagram
- People can create auction posts and add products
- People can bid on products
- When the auction ends, people can buy the product
- Anyone who can see the profile can see auctions posted in their feed
这道题要求设计一个类似 Instagram 的拍卖功能:用户可以发布拍卖帖子并关联商品,其他人可以出价,拍卖结束后允许买家直接购买。核心难点在于梳理帖子、商品、竞价和拍卖状态之间的关系,并处理 feed 可见性与拍卖结束后的状态切换。面试中通常会关注数据模型设计、状态机、权限控制,以及如何高效地向可见用户分发拍卖内容。
正文完