StoryGraph scales self-hosted LLM and ML models to 300 million monthly requests
Book recommendation platform StoryGraph, run by a two-person team, scaled AI/ML infrastructure to handle 300 million monthly requests by self-hosting large language models rather than using external APIs like ChatGPT. Self-hosting was driven by data privacy and cost: using GPT-4 at their scale was calculated to cost approximately $770,000 per month, versus a fraction of that self-hosted. The company processes roughly 1 million LLM requests per day using Redis-based queuing across GPU servers and migrated its database to a 60-server YugabyteDB cluster.
Overview
Book recommendation platform StoryGraph, run by a two-person team, scaled AI/ML infrastructure to handle 300 million monthly requests by self-hosting large language models rather than using external APIs like ChatGPT. Self-hosting was driven by data privacy and cost: using GPT-4 at their scale was calculated to cost approximately $770,000 per month, versus a fraction of that self-hosted. The company processes roughly 1 million LLM requests per day using Redis-based queuing across GPU servers and migrated its database to a 60-server YugabyteDB cluster.
The challenge
StoryGraph 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. Using GPT-4 for their LLM use cases at their scale was calculated to cost approximately $770,000 per month, which would make the business model unviable; the company's community also values data privacy, which self-hosting guarantees since user data never leaves their infrastructure.
The solution
StoryGraph, 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.
Reported business value
By 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.
Sources
Open any source and check the claim yourself — that is the point of the register.
This record was researched and written with AI assistance, and its claims were checked against the sources above. (EU AI Act art. 50 transparency notice.)
Other media & entertainment entries in the register.
How Business Insider's AI-based paywall strategy increased conversions by 75%
Business Insider replaced its editorially-driven freemium paywall with a machine-learning-based smart paywall that decides which content to paywall for each user based on prior reading habits, referral platform, and each content genre's propensity to convert. In testing from December to April, total conversions increased more than 75% versus the control, with 60% of new conversions coming from stories that would never have been paywalled before. Applying AI to the registration wall as well increased registrations by 300%.
Delivering AI-powered entertainment that captivates users for hours
Scatter Lab used Databricks' flexible GPU clusters to build a proprietary Korean-language large language model in three months on a limited budget, powering its AI companion chatbot platform Zeta, which reached 1.5 million users within nine months with over 12 hours of average weekly engagement.
Süddeutsche Zeitung: Lokalinformationen per WhatsApp
Süddeutsche Zeitung (SZ) launched WhatsApp channels for districts around Munich, offering free local news, event information and regional updates. Content comes from SZ's local newsrooms and is supplemented by automatically generated information produced in cooperation with Berlin media startup Beat Squares, which uses AI to process data from publicly accessible sources. All contributions are editorially reviewed before publication. More than 4,000 users subscribed within the first three days.
Hearst uses embedded AI for invoice recognition, cash management, and supplier-payment decisions
Hearst launched Project UniFi to standardize finance, HR, and procurement on Oracle Fusion Cloud Applications, consolidating 19 general ledgers into one chart of accounts and accelerating financial close by 66%. Hearst uses automation and embedded AI to support invoice recognition, cash management, and supplier-payment decisions; intelligent payments help identify suppliers eligible for early-payment discounts across 40,000 vendor relationships.
Was this helpful?
Your feedback helps us improve our use case database