Managed Services · Business Consulting

Paying only for what it uses — 48% off a lead management platform's Azure costs

A lead management platform built with React, Angular, Cosmos DB and APIs on Azure was paying for far more cloud capacity than it used. We right-sized its Cosmos DB throughput, removed a database nothing connected to any more, and trimmed its logging, cutting its monthly Azure costs by an average of 48%.

  • A lead management platform
  • avg 48%

    Lower monthly Azure costs

  • ~24%

    Of the bill saved by sharing Cosmos DB throughput

  • ~13%

    Of the bill saved by trimming logging

  • over 90%

    Less log data ingested

The problem

What they were dealing with

The platform runs on Azure: React and Angular front ends, a set of APIs, and Cosmos DB underneath. Like most cloud applications, it had grown by addition, and its monthly bill had grown with it. Nobody had gone back to ask which of the resources it was paying for were still earning their keep.

Three things stood out. Cosmos DB capacity was reserved separately for every container, in production and in a development environment that only a couple of people used at a time. An Azure SQL database was still running, and still billing, after the application had stopped using it. And Application Insights was storing every piece of telemetry the platform produced, most of it routine logging that nobody used to troubleshoot.

How it ran

The sequence

Find what the platform pays for but does not use, confirm nothing depends on it, then change it.

  1. 01

    Shared throughput for Cosmos DB

    Throughput, measured in request units per second (RU/s), had been provisioned on every container in both dev and prod, and each container reserves its capacity whether it is used or not. We moved the data to database-level shared throughput, so the containers now draw from a single pool. As a rule of thumb, shared throughput suits many lightly used containers and non-production environments, while dedicated throughput is worth keeping for the few high-traffic or critical containers that need guaranteed performance. This change alone saves about 24% of the monthly bill.

  2. 02

    An unused database, removed

    An Azure SQL database was still running that the application no longer used. Once we had confirmed that nothing was connecting to it, we removed it, ending its compute and storage charges with no effect on the application. Unused resources keep billing until someone turns them off, which is why a periodic audit tends to pay for itself. Saving: about 11% of the monthly bill.

  3. 03

    Logging that earns its keep

    Application Insights bills by the volume of data it takes in. It was ingesting large amounts of verbose and informational logs that offered no troubleshooting value, with sampling set to 100%, so every telemetry item was stored. We raised the minimum log level to keep only meaningful events and lowered the sampling rate, cutting log volume by more than 90%. Logging is easy to over-collect by default, so it is worth checking what you actually use to troubleshoot. Saving: about 13% of the monthly bill.

Results

What it produced

  • avg 48%

    Lower monthly Azure costs

    Average monthly saving from all three changes, against the platform's monthly Azure bill before them.

  • ~24%

    Of the bill saved by sharing Cosmos DB throughput

    Containers moved from dedicated to database-level shared throughput, in dev and prod.

  • ~13%

    Of the bill saved by trimming logging

    Higher minimum log level and a lower sampling rate in Application Insights.

  • over 90%

    Less log data ingested

    Application Insights log volume after the change, compared with before.

Reference

What this ran on

Platforms
  • Microsoft Azure
Technologies
  • React
  • Angular
  • Cosmos DB

Something similar on your side?

Tell us what you're working on and we will tell you what we would look at first.

Contact us

Get in touch

Only your email address and a few lines about what you're working on are required. Add as much detail as you like; the more you tell us, the more useful our first reply will be. If you'd rather talk it through, leave your phone number and we'll call you.

If you do not know, leave it. We will work it out.

Tell us a bit about your organization, what isn't working, and when you need it fixed.