← Poisoned Code Review

The FX rates client

≈ 10 min150 pts max

Context

The billing service converts every invoice to euros when it is issued. It runs on 4 Kubernetes pods (limit: 512 MB each), which only restart at the next deployment, every one to two weeks.

At month end it issues ~40 invoices per second. The FX provider bills every call and cuts bursts off, so the team asked to deduplicate concurrent calls.

Objective

Find the line that will bring the service down in a few days, then name the problem.

  • PR diff
  • Diagnosis menu