API Maker

The backend engine for the AI era

Case study 09 · Team & delivery

From Friday-night releases to 60 releases a month

LearnSphere runs online courses and live classes for 300 schools in the US. Its backend shipped twice a month, on Friday nights, with a checklist and a long call. With the Git deployment, test cases and migration scripts of API Maker, releases became small, frequent and boring.

  • 60releases a monthwas 2
  • 6 minfrom merge to productionwas a 3-hour release call
  • 412test cases on every releasewas a manual checklist
  • 0rollbacks in 20265 in 2025

The challenge

Where LearnSphere was stuck

LearnSphere's school year has no quiet month. Teachers schedule live classes, students hand in work at midnight, and a bug in a release reaches thousands of classrooms the next morning.

Release day was the least favourite day of the team. Twice a month, on Friday night, a release captain followed a 40-step checklist: merge the branches, copy the settings, run the SQL scripts by hand on each environment, click through the main screens. In 2025 five releases were rolled back. Two of them because a SQL script ran on production but not on staging.

The result was fear. Developers held changes back to bundle them into the next release, which made every release bigger, and riskier.

  • Big, rare releasesTwo releases a month bundled weeks of changes from three squads.
  • Scripts run by handDatabase changes were run by hand on each environment, and sometimes forgotten on one.
  • Testing by clickingA manual checklist was the only test of the backend before production.

The solution

What they built with API Maker

API Maker writes the APIs, schemas, settings, tests and migration scripts of a project into Git, as files, and a Git pull is the deployment. The team set it up so that a merge runs the test cases, pulls the branch on the next environment and runs its migrations, and stops if anything fails.

  1. Everything in Git

    Custom APIs, schemas, hooks, schedulers and settings are files in Git. A pull request shows exactly what a release changes.

    Git Deployment
  2. A branch per environment

    A merge into the QA, staging or production branch is pulled on the servers of that environment. The pull is applied all at once, or not at all.

  3. Secrets stay where they belong

    Each environment has its own encrypted secrets, so nothing is copied by hand, and production keys never leave production.

    Secrets Management
  4. Migrations that run themselves

    Database changes are migration scripts. Each environment runs the scripts it has not run yet, in order, on deploy.

    Database Migrations
  5. Test cases as the gate

    412 test cases check the business logic, with mocks for the database and the services. The pipeline runs them from the terminal, and a failing test stops the release.

    Testing Framework

The numbers

Before and after

Backend releases each month

020406080Dec 25FebAprJunAugNovGit deployment onDec 25, Releases: 2Jan 26, Releases: 2Feb, Releases: 6Mar, Releases: 14Apr, Releases: 22May, Releases: 31Jun, Releases: 38Jul, Releases: 44Aug, Releases: 52Sep, Releases: 57Oct, Releases: 61Nov, Releases: 60260
020406080Dec 25FebAprJunAugNovGit deployment onDec 25, Releases: 2Jan 26, Releases: 2Feb, Releases: 6Mar, Releases: 14Apr, Releases: 22May, Releases: 31Jun, Releases: 38Jul, Releases: 44Aug, Releases: 52Sep, Releases: 57Oct, Releases: 61Nov, Releases: 60260

Most releases now hold a single change.

Time of one release (minutes)

  • Release call, before
  • Git deployment, now
020406080100Merge and build, Release call, before: 25 min25 minMerge and build, Git deployment, now: 1 min1 minMerge and buildDatabase scripts, Release call, before: 40 min40 minDatabase scripts, Git deployment, now: 1 min1 minDatabase scriptsSettings, secrets, Release call, before: 30 min30 min0 minSettings, secretsTesting, Release call, before: 85 min85 minTesting, Git deployment, now: 4 min4 minTesting
020406080100Merge and build, Release call, before: 25 min25Merge and build, Git deployment, now: 1 min1Merge and buildDatabase scripts, Release call, before: 40 min40Database scripts, Git deployment, now: 1 min1Database scriptsSettings, secrets, Release call, before: 30 min300Settings, secretsTesting, Release call, before: 85 min85Testing, Git deployment, now: 4 min4Testing

3 hours with 4 people before, 6 minutes and nobody now.

The results

What changed for LearnSphere

  • Small releases, every day60 releases a month, most of them a single change. A bug is found the day it is written, by the person who wrote it.
  • The same database everywhereMigrations run on every environment, in order. "It worked on staging" means something again.
  • Tests that keep growingEach fix adds a test case: from 40 in the first month to 412 today.
  • Fridays are normalThere is no release captain any more, and no release night.
A release used to be an event, with pizza and a long call. Now it is just a merge, and nobody notices it except the teacher who asked for the fix.
Engineering ManagerLearnSphere

What comes next. LearnSphere is moving its reports to a read replica with an API Maker server of their own, deployed from the same repository.

Have a problem like LearnSphere?

Try API Maker on your own computer for free, or tell us about your project.