Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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:

  1. Insert a job, according to its associated priority.

  2. Delete a job, based on its identifier.

  3. Return the identifier of the highest-priority job waiting to run.

  4. Return a list of all jobs in the queue, ordered from top priority to least priority.

  5. 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?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases

Authors: Ian Robinson, Jim Webber, Emil Eifrem

1st Edition

1449356265, 978-1449356262

More Books

Students also viewed these Databases questions

Question

=+multiplicity 1). If A + 1, then |A| Answered: 1 week ago

Answered: 1 week ago

Question

Define Scientific Management

Answered: 1 week ago

Question

Explain budgetary Control

Answered: 1 week ago

Question

Solve the integral:

Answered: 1 week ago

Question

What is meant by Non-programmed decision?

Answered: 1 week ago

Question

6. Identify seven types of hidden histories.

Answered: 1 week ago

Question

What is human nature?

Answered: 1 week ago