RT
1 个赞
先列一下requirement
requirement参照Leetcode
你得一条条列出来,不然你还是别做了
我碰到你这样回答的,就直接挂掉
公司里这样做事的,直接fire掉
2 个赞
其实需求列出来以后就可以变成API,然后设计接口,然后设计中间件,然后存储
1 个赞
Requirement gathering:
- languages support: C++, Python, Java, etc.
- Concurrency scale: How many users can online concurrently submit codes? 100, 1k, 10K?
- Features needed: Customized test cases? Console output? Submission time and memory distribution?
- backend use RMDBS or NO SQL?
- Discussion forum and sorting algorithm.
Anything else?
这个不是requirement
老师讲的非常好,我觉得这题的重点是worker怎么设计。能稍微具体说一下worker吗?
其实未必,看面试官重点考察什么
Worker的调度其实就是 resource allocation。参考 Google 最全备战合集 中的
2018 秋季FLAG押题班第9课 - Kafka, Kubernetes, Zookeeper和系统设计 Scheduler
Thanks for correction.