<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/scaling-to-1-2-billion-daily-api-requests-with-caching-at-revenuecat-ks8b4ter7" -->

---
title: Scaling to 1.2 Billion Daily API Requests with Caching...
description: RevenueCat handles over 1.2 billion daily API requests with a caching solution built using Memcached. Key goals for their caching infrastructure include low...
canonical: https://daily.dev/posts/scaling-to-1-2-billion-daily-api-requests-with-caching-at-revenuecat-ks8b4ter7
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Scaling to 1.2 Billion Daily API Requests with Caching at RevenueCat | daily.dev
og:description: RevenueCat handles over 1.2 billion daily API requests with a caching solution built using Memcached. Key goals for their caching infrastructure include low...
og:url: https://daily.dev/posts/scaling-to-1-2-billion-daily-api-requests-with-caching-at-revenuecat-ks8b4ter7
og:image: https://api.daily.dev/og/posts/KS8B4Ter7.png
og:image:alt: Scaling to 1.2 Billion Daily API Requests with Caching at RevenueCat
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Scaling to 1.2 Billion Daily API Requests with Caching at RevenueCat

**[ByteByteGo](https://daily.dev/sources/bytebytego)** · 13 min read · 79 upvotes · 0 comments

## Summary

RevenueCat handles over 1.2 billion daily API requests with a caching solution built using Memcached. Key goals for their caching infrastructure include low latency, keeping cache servers active and full, and maintaining data consistency. They use techniques like pre-established connections, a fail-fast approach, mirrored and gutter pools, and local caching to optimize performance and reliability. Handling hot keys and avoiding thundering herds are essential strategies to maintain system stability. RevenueCat also employs a systematic approach for cache server migrations and maintaining data consistency to ensure smooth operations.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.bytebytego.com/p/scaling-to-12-billion-daily-api-requests>

---

Tags: [#infrastructure](https://daily.dev/tags/infrastructure)

[View this post on daily.dev](https://daily.dev/posts/scaling-to-1-2-billion-daily-api-requests-with-caching-at-revenuecat-ks8b4ter7)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Scaling to 1.2 Billion Daily API Requests with Caching at RevenueCat","url":"https://daily.dev/posts/scaling-to-1-2-billion-daily-api-requests-with-caching-at-revenuecat-ks8b4ter7","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/scaling-to-1-2-billion-daily-api-requests-with-caching-at-revenuecat-ks8b4ter7"},"datePublished":"2024-06-18T15:37:59.112Z","dateModified":"2024-08-23T15:21:05.219Z","description":"RevenueCat handles over 1.2 billion daily API requests with a caching solution built using Memcached. Key goals for their caching infrastructure include low...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/47af8e0f7f7258bd2f9bc56ed1bc468d?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/47af8e0f7f7258bd2f9bc56ed1bc468d?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"ByteByteGo","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"ByteByteGo","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/35be29234ee14d01a9cd049c52e12753","url":"https://daily.dev/sources/bytebytego"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/scaling-to-1-2-billion-daily-api-requests-with-caching-at-revenuecat-ks8b4ter7","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":79},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"infrastructure","timeRequired":"PT13M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"ByteByteGo","item":"https://daily.dev/sources/bytebytego"},{"@type":"ListItem","position":3,"name":"Scaling to 1.2 Billion Daily API Requests with Caching at RevenueCat"}]}
```

