Serving four million Riffusion requests in two days
Dec 21, 2022

Summary
This post details how Baseten handled a surge of 4 million Riffusion requests in two days by scaling beyond default autoscaling limits. Key technical contributions include implementing a caching layer using a Postgres table to store and retrieve common model responses, thereby reducing unnecessary model invocations. It also highlights the strategic use of a mix of spot and on-demand instances for cost-effective scaling and discusses trade-offs accepted for a hobby project, such as slightly higher latency and error rates, to manage costs.
More from the Baseten AI Model Deployment and Serving Platform trail
- LangChain trains custom models for LangSmith Engine with Baseten Loops
- DeepSeek-V4.1-Flash: more efficient prefill for coding agents
- Blaxel is joining Baseten to build the future of agentic infrastructure
- How Baseten makes pyannote’s diarization models 9.6x faster
- Optimizing delta weight syncs for managed rollouts