Investigation: How many selected titles' cost-per-use return

MODKBEKBJ-513 - Getting issue details... STATUS

Goal

Investigate the response time of GET /eholdings/packages/<packageId>/resources/costperuse endpoint.

Investigation

Endpoint's work steps:

  1. fetch title IDs from the holdings table;
  2. prepare requests to APIGEE POST /uc/costperuse/titles. Limit up to 1000 title IDs per request. For publisher type = all - make 2 requests with parameter 'publisherPlatform' = true and 'publisherPlatform' = false
  3. receive responses and generate mod-kb result 

Response time comparison table

Packageplatform = publisher / nonPublisher

platform = all

ID

Amount of

selected titles

Number of requests

to APIGEE

Response time

Number of requests

to APIGEE

Response time
234-131010011.5 - 2.421.5 - 2.6
184-102120011.8 - 2.421.8 - 2.6
36-275813250512.38 - 2.922.45 - 3.15
57-1876699812.86 - 3.523.05 - 5.6
36-4114143022.98 - 3.744.42 - 6.0
372-2514919322242.99 - 3.984.44 - 6.2
36-1510671174.91 - 6.75147.6 - 7.81
58-1322225692311.86 - 14.7546> 20

Response time comparison chart

The biggest part of time in table is waiting responses from APIGEE. Calculation and sorting on mod-kb-ebsco side takes miliseconds.