Building microservices in Python
summary
Shows how Python runs real microservices at Mozilla scale: Firefox Sync migrated from monoliths to many small HTTP services, using Flask then aiohttp for async, Celery workers with Redis and message patterns or RabbitMQ consumed via pika, and token-based auth with JWT. Advises versioned HTTP APIs (avoid CRUD-mirroring), avoid premature splits, test whole-system CI or Docker dev stacks, monitor with Sentry/Graylog, and expect harder integration testing and migration pain when millions of clients require backward-compatible API versioning. Practical examples include Celery + Redis or RabbitMQ with pika and use JWT tokens.
AI-written summary · about
chapters (13)
- 0:00Introduction and speaker intro
- 3:17What are microservices
- 7:38Risks and pitfalls of microservices
- 9:55Key principles for microservices
- 13:51Designing HTTP APIs
- 17:23Python frameworks for microservices
- 19:38Case study: Strava-like app
- 22:07Messaging between microservices
- 27:37Authentication in microservices
- 30:09Testing microservices
- 31:15Deployment and monitoring
- 33:01Conclusion and book mention
- 34:11Q&A session
