Lyft VO 面试真题解析:Design a Donations Website|高并发捐赠网站设计

22次阅读
没有评论

Design a Donations Website

Donations Website Features:

  • Users donate to charity
  • Donation confirmations
  • Donations paid to charity

Design a website to collect donations in real time. The website will host a donation form which accepts the user’s name, email address, payment information, and charity.

There will be 10 charities to choose from (this can be hardcoded and won’t change).

After submitting, the back-end will take the user’s money and send them a donation confirmation.

The website will only accept donations for 24 hours. We expect an average of 5K RPS for this site with peaks of 10K RPS.

这道题本质上是一个高并发、强时效的捐赠网站设计题:前端需要展示 10 个可选慈善机构和捐赠表单,后端则要在用户提交后完成支付处理、生成捐赠确认,并保证资金最终转给慈善机构。题目最关键的点是实时收单、24 小时限时开放、平均 5K RPS 峰值 10K RPS,因此需要重点考虑高可用的请求入口、支付与确认流程的异步化、幂等处理、队列削峰、以及慈善机构列表这种可直接硬编码的低变更数据。

正文完
 0