01
Slow responses from sequential lookups
- Problem
- Each analysis needs data for several pieces of equipment, and the first version fetched them one by one. Response time grew with every item.
- Approach
- I moved the lookups out of the loop and ran them concurrently, with sensible limits so a large request can't flood the systems it depends on.
- Outcome
- Analysis time stopped scaling linearly with the number of items, and the service handles bigger requests comfortably.