internetarchive / internetarchive/openlibrary

Performance: Borrowing Bloat

Open
#7,726 1 comment 0 reactions 0 assignees View on GitHub
Lead: @mekarpeles Module: Borrowing / Lending Needs: Staff / Internal Priority: 2 Theme: Performance Type: Bug Type: Epic
Dominant language
Python
Stars
6.7k
Forks
2k
Avg merge
2d 19h
Merged PRs (30d)
138

Description

When we perform a borrow, we're making 6 network requests when we could likely be performing 1 and reduce the borrow time by ~75%

⚠ @jimchamp this should also prioritize decoupling/sunsetting ACS from Open Library

### Evidence / Screenshot (if possible)
![image](https://user-images.githubusercontent.com/978325/227605385-ee5519cb-bd68-424b-8171-1297ea53c58e.png)

### Related files

https://github.com/internetarchive/openlibrary/blob/master/openlibrary/plugins/upstream/borrow.py#L105-L214

### Stakeholders

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.