Surviving LLM Traffic Spikes: Routing, Rate Limits, and Failover in Python - Sergi Porta @EuroPythonConference
Surviving LLM Traffic Spikes: Routing, Rate Limits, and Failover in Python - Sergi Porta  @EuroPythonConference
Uploaded August 2026 | Updated September 2026, 2 weeks ago
[EuroPython 2026 - S3B on 2026-07-16]
🎤 *Surviving LLM Traffic Spikes: Routing, Rate Limits, and Failover in Python by Sergi Porta*
🔗 https://ep2026.europython.eu/session/surviving-llm-traffic-spikes-routing-rate-limits-and-failover-in-python

📝 Abstract:
Your team ships an AI feature and users love it. Then one viral post turns "normal load" into hundreds of LLM requests per second.

LLM calls don't behave like traditional API requests. They're slow (sometimes seconds), expensive, rate-limited by providers, and a single provider outage can take your entire feature down. You can't just "add more servers." You need a routing layer that knows where to send traffic, when to back off, and how to fail without taking everything with it.

In this talk, we'll walk through the LLM traffic routing architecture we built in Python at Manychat, where we serve AI-powered automation to thousands of Instagram and messaging accounts. Everything we'll show is running in production.

We'll cover the core gateway patterns for multi-provider LLM traffic, implemented using LiteLLM Router as a reference design.

By the end, you'll walk away with:

- A weighted routing blueprint you can adapt to your own provider mix
- Fallback and cooldown rules designed to survive real outages
- Practical rate limiting (requests and tokens) with retry backoff
- The monitoring baseline (latency, tokens, errors by provider, weight drift) to catch issues before they cascade
- A checklist for rolling this out safely, incrementally

---
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License: creativecommons.org/licenses/by-nc-sa/4.0
Surviving LLM Traffic Spikes: Routing, Rate Limits, and Failover in Python - Sergi PortaWhere Do You Want The Next EuroPython To Be — ColinFree-threaded Python: past, present and future - Thomas WoutersLies, damned lies and large language models — Jodie BurchellHow Did Mentoring Influence Your Life — Petr ViktorinDefending Open Source from AI Slop: A Maintainers Practical GuideWas The Beer Cheap In Prague — Cristián Maureira FredesEuroPython 2026 Location AnnouncementStop Guessing, Start Understanding: How Arrow and Pandas Exchange DataDesign Patterns: Build better software from day one — Marine GuyotWhat are you looking forward to the most at #europython 2026 in Kraków?What will the participants of #europython 2026 in Kraków enjoy the most?
EuroPython Conference |

Surviving LLM Traffic Spikes: Routing, Rate Limits, and Failover in Python - Sergi Porta

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER