StoryGraph scales self-hosted LLM and ML models to 300 million monthly requests
The most noteworthy point is that a two-person team self-hosts models to handle 300 million requests per month, bringing GPT-4 call costs down from roughly 770,000 USD per month.
Evidence score
96
Third-party verified · High
AI capability
Large Language Models
Capability as labeled by source
Industry scope
Digital Content
Industry-specific
Maturity
Live
Verified case
01 — Background
What was the challenge
Challenge as recorded by the sourceStoryGraph needed to deliver AI-powered features, including book mood classification, recommendation engines, personalized previews, and content moderation, to millions of users while maintaining profitability as a freemium app where only a small fraction of users pay.
02 — How it works
What they actually did
1
Uses Redis BRPOP command as a queue to distribute roughly 1 million LLM requests per day to GPU servers; any machine with a GPU can join the cluster
2
Database migrated from PostgreSQL to a distributed YugabyteDB cluster, with query optimization through CTE rewrites, added indexes, and denormalized tables
3
YugabyteDB scaled to 60 servers, 960 cores, 2.5 TB memory, 40 TB storage, at roughly 2,000 USD per month
Practice as recorded by the sourceStoryGraph, run by a two-person team, self-hosts its large language models and roughly a dozen specialized ML models rather than using external APIs like ChatGPT. The company processes approximately 1 million LLM requests per day using a Redis-based queuing system (leveraging Redis's BRPOP command) to distribute ML inference jobs across GPU servers, allowing any machine with a GPU to join the cluster. StoryGraph also migrated its database from PostgreSQL to a distributed YugabyteDB cluster to handle scale, using CTE rewriting, additional indexes, and denormalized tables to optimize query performance.
TAKEAWAY
What you can reuse
Once request volume reaches a certain scale, self-hosting can significantly amortize per-inference costs; SMEs can first adopt a queued architecture to preserve the option of switching to self-hosting later.
03 — Risks & pitfalls
Know this before you try
Analyst judgment · risks and limitsThe roughly 770,000 USD is a hypothetical cost calculated from GPT-4 call volume, not actual expenditure; total self-hosting costs are not fully disclosed, and it depends on the team having GPU operations capabilities.
Evidence & sourcing reminderThis entry is third-party verified (evidence grade High, evidence score 96). All figures are quoted from third-party verification sources; trace them back to primary sources before citing externally. Rollout time and gains vary by company.
04 — Results & evidence
What the results were
Organization: StoryGraph · Third-party verified
Reported resultsBy self-hosting, StoryGraph achieves the functionality of large-scale LLM inference at a fraction of the approximately $770,000 per month that using GPT-4 at their scale would cost. The company scaled from about 1,000 users in June 2020 to over 6 million monthly active users by January 2024, handling 300 million monthly requests. The YugabyteDB cluster scaled to 60 servers with 960 cores, 2.5 TB RAM, and 40 TB storage for approximately $2,000 per month.
Figures are third-party verified, not measured by this site.