{"id":70198,"title":"SuperAPI - Make all your fetch APIs cacheable","tagline":"We help make your APIs much faster by making them cacheable ","body":"### **✨ TL;DR**\n\nSuperAPI is a programmable API gateway that makes all your fetch APIs cacheable, and makes sure your cached API responses never goes stale.\n\nHey everyone - it’s Aditya and Adithya here introducing **SuperAPI**.\\\n\\\n—\n\n### **🤯 Problem**\n\nA lot of application APIs are considered non-cacheable either because:\n\n1. the underlying data changes frequently\n2. they use GraphQL making it difficult to cache\n3. they’re REST APIs that fetch using POST because they have their search parameters within the body\n\nMost applications in this situation do not cache their API responses, and end up serving APIs with a high latency, or setup multiple clusters close to their users to give them low latencies.\n\n# **💡 Solution**\n\nSuperAPI makes such APIs cacheable by monitoring your incoming **POST / PUT / PATCH** API calls, and your database updates to invalidate stale data and keep your API cache fresh.\n\nBecause we listen to your database changes, SuperAPI can also update your cache in-place. This means, any updates in your database will only modify the relevant portions of your cached API responses.\n\nThis reduces the amount of computations on your database \u0026 compute instances, helping reduce your cloud spend.\n\n# **🚀 How does SuperAPI work?**\n\nSuperAPI can either be deployed as a separate API gateway, or can run on top of other caching providers like **Cloudflare \u0026 Cloudfront.**\n\nThis API gateway listens to all incoming update API calls (POST / PUT / PATCH), and invalidates any API cache that could go stale as a result of this incoming update API call.\n\nWe also have a tiny docker container running within your network that listens to your database updates (using the replication stream or database triggers), which helps us catch any invalidations coming from internal cron jobs \u0026 batch processes.\n\nRead more about how SuperAPI works [here](https://trysuperapi.com/blog/how-does-superapi-work-clet0rvf1446071ko73x4q6qtr).\n\n![uploaded image](/media/?type=post\u0026id=70198\u0026key=user_uploads/11606/c7fdb60e-043e-49d6-b23b-e6123de076e6)\n\n# **📜 How did we get here?**\n\nBoth of us founders worked together at a Tiger Global backed Indian tech company before starting on SuperAPI.\n\nI was the first engineer there, and built out majority of the product \u0026 platform for the first couple of years. For the next 2 years, I was heading the engineering team, growing the team from 6 engineers to \\~55 engineers, designers \u0026 PMs.\n\nAditya was heading the platform engineering team, where he built a majority of the infrastructure to scale the platform and bring down the API latencies to less than 50ms.\n\nWe’ve been obsessed with API latencies since our time working together, and are using a lot of learnings from back then to build out SuperAPI.\n\n# ❓ **Asks**\n\nIf you are looking to **reduce your API latencies**, let’s talk. Drop us a note at: [founders@trysuperapi.com](mailto:founders@trysuperapi.com).","slug":"IGE-superapi-make-all-your-fetch-apis-cacheable","created_at":"2023-03-12T00:34:19.620Z","updated_at":"2026-04-27T15:38:42.511Z","total_vote_count":190,"url":"https://www.ycombinator.com/launches/IGE-superapi-make-all-your-fetch-apis-cacheable","share_image_url":"//bookface-static.ycombinator.com/assets/ycdc/yc-og-image-c440a0ad1dacfb86eeeb343717479cc54d256614449b4ef719977a0a451f8bc8.png","company":{"id":28107,"name":"SuperAPI","slug":"superapi","url":"https://trysuperapi.com","logo":"https://bookface-images.s3.amazonaws.com/small_logos/c11e1c8d036fe535bd716bcbde93721f71fc8801.png","batch":"Winter 2023","industry":"B2B","tags":["Developer Tools","API"],"search_path":"https://bookface.ycombinator.com/company/28107"}}