Grokking the System Design Interview, Volume II
Vote
0% completed
Code Judging System: Detailed Component Design
Step 6: Detailed Component Design
a. Submission Queue (Message Queue)
A critical component for decoupling is the queue that sits between the Submission service and the Code Execution workers. When a user submits code, the request is turned into a job message that is placed onto a queue (for example, RabbitMQ, Kafka, AWS SQS, etc.). The job message includes all information needed to run the code: submission ID, code, language, problem ID (to fetch test cases), and maybe the input test files or a reference to them.
.....
.....
.....
Like the course? Get enrolled and start learning!