Contact us

Should we move to microservices?

Asked by Calder Labs, logistics software

Our answer

No. Draw clear module boundaries inside the monolith and cut the cloud bill first.

-41%
monthly cloud bill
4x
more releases a month
₹38 lakh
saved each year

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

  • Ruled outSplit into 20 microservicesWould need a team twice their size to run, and the billing and routing code was too tangled to cut cleanly.
  • Ruled outRewrite in a new languageA year of feature freeze for a platform that mostly worked.
  • ChosenA modular monolithSame codebase, enforced boundaries, tests on every change. Weekly releases within five months.

What we did

  1. 1
    Audit 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.

  2. 2
    Recommend 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.

  3. 3
    Pay 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.

  4. 4
    Hand 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.”

CEO, Calder Labs

A senior engineer reads it and replies within one working day.

WhatsApp us