Professional Documents
Culture Documents
Assignment
Table of Contents
Table of Contents
System Design
Processing System Specs
Job Queue System Specs
Block Diagram
Tips
Implementation steps
Evaluation setup
System Design
There are two systems involved in the project: the Processing System and the Job Queue
System. The Processing System is created and provided by AutoFlow, with the API
exposed. Your task is to develop a Job Queue System that interacts with the Processing
https://ah9x9uxtyc.execute-api.ap-south-1.amazonaws.com/default/autoflow_full_stack_assignment
Method: POST
Body:
{
“processId”: <String>,
“maxDelay”: 4 <Integer (In seconds)>
}
The API returns a delayed response with a maximum delay ranging between 0 and
maxDelay . The API produces an HTTP 200 response 67% of the time and an HTTP 500
Endpoint:
/addJob
Contents:
{
“Id”: <String>,
}
2. Status API -
Endpoint:
/status?count=10
The API accepts GET requests with query param count. It returns a list of latest jobs
with limit = count.
The /addJob API endpoint is utilized to add a job object to the queue. Another
consumer service within the Job Queue System reads objects from the queue and
sends requests to the aforementioned processing system. If the response is 200 , the
object is dequeued; otherwise, the object is resubmitted. If the processing system
returns a 500 response three times consecutively, the job is marked as failed.
All jobs are stored in storage system (file/db) with following schema:
id: String
status: Enum(FAIL/SUCCESS)
Block Diagram
Tips
Implementation steps
Evaluation setup
For submission, you are required to set the maxDelay for making POST requests to the
processing system to 4 seconds. Multiple POST requests will be sent to queue jobs, and
the status API will be used to check the job status.