StoryGraph scales self-hosted LLM and ML models to 300 million monthly requests
StoryGraph
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.
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%.
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.
Wiley boosts service efficiency with Salesforce Agentforce
Publisher Wiley uses Salesforce Agentforce alongside Service Cloud and Einstein AI to manage customer service, letting AI agents resolve common issues like password resets and account access so human reps can focus on complex cases. Agentforce improved case resolution by over 40% compared to Wiley's previous chatbot, helped onboard seasonal agents 50% faster, and delivered a 213% return on investment with $230,000 in annual cost savings.
ElevenLabs: Scaling Voice AI with GPU-Accelerated Infrastructure
ElevenLabs runs its voice AI platform for text-to-speech, voice cloning and speech-to-speech translation on Google Kubernetes Engine (GKE) with NVIDIA GPUs, using GPU optimization strategies such as Multi-Instance GPUs and GPU time sharing to improve utilization and reduce costs. The platform generates 600 hours of audio for every hour of real time, supports 29 languages (expanding to 40), and is reportedly used by 41% of Fortune 500 companies, powering products including AI Dubbing Studio, long-form audio for audiobooks and podcasts, article narration for outlets like The New York Times, and real-time conversational AI assistants.
Was this helpful?
Your feedback helps us improve our use case database