How we saved £490/mo and reached 99.9% uptime by migrating a complex automation stack.
Client: Mid-sized E-commerce Brand
Stack: Shopify -> Zapier (12 workflows) -> Google Sheets -> Klaviyo
Volume: 5,000 orders/month
- Cost: £500+/month in Zapier tasks.
- Reliability: Frequent timeouts during Black Friday spikes.
- Maintenance: 3-4 hours/week debugging "Zapier held your task" errors.
- Data Integrity: 5% of orders missing tracking numbers due to race conditions.
We migrated the core logic to a dedicated Python microservice hosted on a £5/mo VPS.
| Feature | Zapier Stack | Python (FastAPI) Solution |
|---|---|---|
| Cost | £500/mo | ~£10/mo (VPS + DB) |
| Speed | ~5-10s latency | <500ms |
| Retries | Basic (wait 5 mins) | Exponential backoff (jittered) |
| Observability | "Task History" UI | Structured Logs + Sentry Alerts |
| Uptime | 98% (API limits) | 99.9% |
We built a lightweight FastAPI service that receives webhooks from Shopify.
- FastAPI Endpoint: Receives webhooks instantly (async).
- Celery/Redis Queue: Offloads processing to background workers (preventing timeouts).
- SQLAlchemy: Stores state in PostgreSQL to ensure idempotency.
- Tenacity: Library used for robust retry logic on external APIs (Klaviyo).
- Cost Reduction: 98% savings (£500 → £10/mo).
- Zero Downtime: Handled 4x normal load during subsequent sales events without a single failure.
- Developer Experience: Local testing with Pytest gives confidence before deploying.
This repo contains a sanitized version of the migration code.
before/: Documentation of the legacy Zapier flows.after/python-solution/: The Python code that replaced it.docs/: Detailed cost and reliability analysis.
If your "No-Code" stack is becoming a "Low-Code" nightmare, let's talk.
MIT License.