API Maker
The backend engine for the AI era
Case study 03 · P99 latency
LendLoop Finance lends small amounts to 210,000 shop owners through a mobile app. The average answer was fine. The slowest one in a hundred was not, and those were the payment screens. LendLoop moved its busiest APIs to API Maker, and the P99 fell from 2.4 seconds to 38 ms.
The challenge
Every morning at 10, the shop owners of LendLoop open the app to repay yesterday's loan and take today's. For 99 of them the app answered in a fraction of a second. For the 100th it spun for two or three seconds, and sometimes the payment timed out after the money had left the bank.
Those were the worst minutes for the support team. A payment that timed out meant a customer who had paid, an app that said they had not, and a call to the bank to check. In March 2025 support logged 1,900 such tickets.
The backend team had tried everything they knew in Node.js: bigger servers, a second cache, a queue for the slow reports. The average went down. The P99 did not. Garbage collection pauses, N+1 queries in the loan history and a connection pool that ran dry at 10 am came back every time, in a new form.
The solution
The published benchmarks of API Maker show a P99 of about 50 ms on a $5 server with 1 vCPU, at 2,400 requests a second. The CTO ran the same test on LendLoop's own data and a 4 vCPU server before believing it. The engine is written in Rust, so there is no garbage collector to pause it. The team moved the ten busiest APIs first, behind the same URLs, and kept Node.js for the rest.
The load balancer sent /loans and /repayments to API Maker and the rest to the old backend. The app did not change.
Auto Generated APIsThe loan history read each repayment with a query of its own. Deep populate now reads a loan with its repayments and their receipts in one call.
Deep PopulateThe rate cards and the limits of each shop are cached. A write to a table clears the cache of that table, so nobody ever sees an old limit.
Automatic CachingThe credit checks became custom APIs in TypeScript, with test cases that mock the answers of the bank.
Custom APIsMonitoring shows the time of every API. The team checks the P99 each morning after 10 am, the way they used to check the ticket queue.
Monitoring and LogsThe numbers
The same API, the same database, the same hour of the day.
Each drop is an API moved to API Maker.
The results
Averages lie. Our customers do not live in the average, they live in the slowest second of their day. API Maker gave us a P99 we are proud to put on a slide.
What comes next. LendLoop is moving the last reports off the old backend. Then the whole API will run on the two servers.
Try API Maker on your own computer for free, or tell us about your project.