The situation
Calder Labs sells fleet and freight management software to about 300 logistics companies across India. The platform began as one Rails app in 2016 and had grown to 400,000 lines.
Releases happened once a month after a weekend of manual testing. A change to invoicing could break route planning. The AWS bill had grown faster than revenue for two years, and nobody could say which part of the product was driving it.
The engineering team wanted microservices. The CEO wanted to know whether that would fix anything.
Options we considered
What we did
- 1Audit cost and coupling
We mapped which modules called which, and tagged every AWS resource to a product area. Route optimisation jobs ran on oversized instances around the clock and made up 38% of the bill.
- 2Recommend a modular monolith
Splitting into 20 services would have needed a team twice their size. We drew clear module boundaries inside the existing codebase instead, and enforced them in CI.
- 3Pay down the worst of it
Moved route optimisation to scheduled jobs on spot instances, added tests around invoicing and dispatch, and set up trunk-based development with feature flags.
- 4Hand it back
We paired with Calder's engineers on every change, wrote the architecture decision records, and stepped back once their team had led two releases on their own.
What changed
The monthly AWS bill fell 41%, about ₹38 lakh a year. Calder now releases four or five times a month, and each release is tested automatically in under 20 minutes.
Billing and tracking are now clean enough to split out later if the team grows. For now they have chosen to keep one codebase, and the platform is quicker to change than it has been in years.
“We came in asking for microservices. We left with a cheaper, faster platform and the same team.”