←Work · Case study C/02

Scaling test reporting past a third-party rate limit

An internal service that reported integration-test results to Jira was losing data whenever a run exceeded the vendor's API rate limit. A Redis-backed queue shared across Kubernetes pods quadrupled capacity and stopped the data loss.

→Outcomes

  • Integration tests reported per repository: about 300 → 1,200
  • No more test results lost to third-party rate limiting
  • Performance-test data from pipeline runs now reaches Jira, removing a blocker for stakeholders

Context

Engineering teams across the company ran their integration tests in CI, and an internal microservice sent each run's results to Jira through a test-management API, where teams and stakeholders tracked them.

The problem

The vendor's API enforces rate limits, and the service ran as several Kubernetes pods. Each pod sent results independently, so a large run pushed the combined traffic over the limit and requests were rejected. Results were silently lost, which made the service unreliable for any repository with more than about 300 integration tests.

The approach

I reworked the service around a queue in Redis. Instead of every pod calling the vendor directly, results go into a shared queue, and sending is rate-limited across all pods together, so the service as a whole stays under the vendor's limit however many pods are running. Results wait their turn instead of being dropped.

Result

The service went from reliably handling about 300 integration tests per repository to 1,200, with no lost data.

Separately, I built a custom way to upload performance-test data from pipeline runs into Jira. Stakeholders had been blocked without that data.

Also on this team

Day to day I designed, built and tested user interfaces and microservices in React and Express (TypeScript and JavaScript), and made performance improvements to existing React and Express apps.