#52Hard
Design a Distributed Botnet
Asked by:FacebookLyft
Recommended Solutions from the Web
MapReduce Paper - which coordinates a cluster of machines to do a task
https://static.googleusercontent.com/media/research.google.com/en//archive/mapreduce-osdi04.pdf
Leetcode Discussion
https://leetcode.com/discuss/post/1375361/botnet-system-designfacebook-design-roun-jv0g/
Blind
https://www.teamblind.com/post/System-design-for-Botnet-5x0Mq34z
Key Details & Edge Cases You Should Know
•
It is essentially the same as coordinating a bunch of machines towards doing a particular task, and tracking it.
•
You can take the MapReduce template - master-workers, heartbeats for tracking tasks, etc.
•
To consider:
•
How will you send a task to the cluster of computers?
•
How will you keep track of each computer's task?
•
What will you do if a computer fails? How will you get notified?
•
How will you know when all the computers have completed the task?