Skip to content
scalemorph
Contact uscontact@scalemorph.com

Case Study / Cloud Cost Optimization

GCP Data Pipeline — Cloud Run Cost Cut

Legacy Python moved to Flask, Docker, Cloud Run, and Cloud Scheduler — about 80% cheaper on the major pipeline, without rewriting the core logic.

← All case studies
Industry
Cloud / Data Infrastructure
Project Type
Pipeline Modernization
Timeline
Focused delivery sprint
Technology
Python, Flask, Docker, GCP Cloud Run, Cloud Scheduler
Infrastructure
Google Cloud Platform

The challenge

Find the real problem.

The pipeline was working, but legacy hosting made it expensive.

The client needed lower cost and clearer operations without throwing away a Python module that already did the job.

The right move was a lean GCP runtime: wrap, containerize, schedule, and hand off with clarity.

Legacy hosting burned pipeline budget

A data pipeline toolkit was expensive to run on legacy hosting, so cost grew with every scheduled job.

Core logic was worth keeping

Rewriting the Python module from scratch would have added risk and delay without improving the business outcome.

Scheduling needed to stay reliable

Jobs had to run on a predictable schedule with a leaner runtime, not a fragile set of always-on hosts.

Delivery had to be teachable

The client needed clear code, comments, and a path the team could operate after handoff.

What we built

Connect the pieces.

A lean Cloud Run pipeline around the existing Python module.

We wrapped the existing Python module in Flask, packaged it with Docker, and deployed it to GCP Cloud Run with Cloud Scheduler for job timing.

The goal was cost and operability: keep the proven logic, remove the expensive hosting layer, and leave a system the client could understand.

Flask wrapper around existing logic

Exposed the existing Python module through a thin Flask service so the pipeline could run as a containerized HTTP job without a full rewrite.

Docker packaging for Cloud Run

Containerized the service for Cloud Run so scaling and billing followed actual job execution instead of always-on hosts.

Cloud Scheduler orchestration

Wired Cloud Scheduler to trigger the pipeline on the required cadence with a clear operational path.

Handoff-ready documentation

Left clear comments and delivery notes so the client could maintain and extend the pipeline after launch.

What we learned

Better with every build.

Lean cloud runtimes beat expensive rewrites when the logic is sound.

This engagement reinforced that cost and operability often unlock more value than a full rebuild. Cloud Run and Scheduler gave the client a durable path, and the Upwork review called out both delivery quality and teaching.

Cost often improves without rewriting the core

Moving proven logic to a lean runtime can cut spend faster than a greenfield rebuild.

Cloud Run fit a scheduled workload where legacy hosting was the real cost driver.

Thin wrappers beat heavy platforms

A Flask + Docker edge around existing code kept risk low and delivery fast.

The client kept domain logic while gaining serverless-style economics.

Teaching is part of delivery

Clear comments and structure made the cost win durable after handoff.

Neil B. called out teaching and cost-efficient cloud-native delivery on Upwork.

Outcomes

A stronger foundation.

About 80% cost reduction on the major pipeline after moving to Cloud Run and Cloud Scheduler.

Client feedback on Upwork: “One of the best freelancers I have ever worked with” — rapid, cost-efficient cloud-native delivery.

GCPCloud RunDockerPythonFlask

Start a project

Ready to build the platform
your team runs on?

Tell us where work is stalling — a portal, backend, marketplace, staffing system, an AI layer, or cloud ops.
In 30 minutes we’ll map the highest-leverage build first.

Book an introductionA conversation. No commitment.