主权项 |
1. A computer-implemented method for servicing a data service request received at a server in communication with a buffer, comprising:
determining if the server includes sufficient resources to immediately service the data service request, wherein:
the server includes insufficient resources to immediately service the data service request when a plurality of pending data service requests for the server are in a queue in the buffer for servicing by the server,each pending data service request includes a respective priority level of a plurality of priority levels, andeach pending data service request includes a position in the queue based on each respective priority level; assigning a first priority level for the data service request if the server includes insufficient resources to immediately service the data service request, wherein assigning the first priority level for the data service request comprises:
comparing, by the server, a plurality of parameters of the data service request against a lookup table; andassigning, by the server, the first priority level based on a plurality of priority values stored in the lookup table and associated with the plurality of request parameters;wherein at least one of the request parameters of the received request is correlated with a particular time interval in which the data service request is received; if the server includes sufficient resources to immediately service the data service request, performing the data service request without storing the data service request in the buffer; if the server includes insufficient resources to immediately service the data service request:
storing the data service request in the buffer;determining, for the data service request, a first position in the queue based on the first priority level compared to the priority level for each respective pending data service request in the queue;determining a first length of time that the data service request is in the queue; andif the first length of time that the data service request is in the queue is greater than a threshold length of time, repositioning the data service request in the queue to a higher position in the queue that is ahead of at least one other data service request that includes:
a.) a higher priority level than the data service request, andb.) a second length of time in the queue that is less than the threshold length of time. |