In the first week of your job, you are asked to build a distributed system to
execute jobs in a priority sequence. Each job has a unique identifier.
You must be able to:
Insert a job, according to its associated priority.
Delete a job, based on its identifier.
Return the identifier of the highest-priority job waiting to run.
Return a list of all jobs in the queue, ordered from top priority to least priority.
Return the number of jobs that are waiting in the queue.
a) Write the RESTful API endpoint definition of the above functionality.
For example: GET .../api name?[parameters]
b) How would you ensure data consistency in your system?