From Flying Circus to Holy Grail: Migrating the Twilio API from PHP to Python
summary
Company extracts features from a 500k‑line PHP monolith into small services and builds starship, a Python/Flask federation that maps public REST endpoints to internal REST services using the proxy resource pattern. Starship uses requests and gevent, centralises auth/validation/rate‑limit, and handles 5,000 RPS and five billion monthly requests while the team runs 1,200 unit tests (3s), 30s integration tests and 5min cluster tests. Deploys use shadowing, canaries and percentage rollouts; migration succeeds with zero downtime.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 1:45Twilio API Architecture
- 4:10Twilio API Problems
- 6:20Recap
- 8:16Starship
- 13:45Planning
- 14:50Architectural E
- 20:01Test Cases
- 21:42throwaway tests
- 22:56deployments
- 24:26canariang
related talks
21mThe great SOA migration
34mPython Micro-service Architecture
33mLessons learned building Python microservices
25mA microservices architecture with Python and Docker containers
39mBuilding Scalable Orchestration
44mPython in the MicroServices world
37mFrom the ground to the stars
32mAirbnb's Great Migration: Service APIs at scale
