I also like to rate limit route that calls OpenAI API since the cost can quickly go up. Vercel KV behind the scene should based on Upstash Redis, so it's the same offering. Another solution is to put behind the authentication. Definitively not as bullet proof as the rate limiting. But, you can combine rate limiting and authentication to prevent spam. I think Vercel KV and Upstash is a good start for rate limiting but if you want to further, I would suggest Arcjet . They provide rate limiting, bot protection, and more to secure your routes. They have a pretty generous free tier. I use it in Next.js Boilerplate , you can take a look as inspiration. Answer from ixartz on reddit.com
🌐
Upstash
upstash.com
Upstash: Serverless Data Platform
"Upstash's global Redis has been a game changer — low latency, zero downtime, and easy to use across frontend and backend.
Blog
Articles and tutorials from Upstash and community.
About
Upstash is a serverless data platform providing low latency and high scalability for real-time applications. Optimize your data infrastructure with Upstash's managed services for Redis, Vector, QStash, and other key data technologies.
Pricing
Upstash is a serverless data platform providing low latency and high scalability for real-time applications. Optimize your data infrastructure with Upstash's managed services for Redis, Vector, QStash, and other key data technologies.
Careers4
Help us build the cutting edge data platform for the serverless era.
🌐
GitHub
github.com › upstash › redis-js
GitHub - upstash/redis-js: HTTP based Redis Client for Serverless and Edge Functions
@upstash/redis is an HTTP/REST based Redis client for typescript, built on top of Upstash REST API.
Starred by 890 users
Forked by 87 users
Languages   TypeScript 99.3% | JavaScript 0.7%
Discussions

Is Upstash Redis free tier enough for rate limiting?
I also like to rate limit route that calls OpenAI API since the cost can quickly go up. Vercel KV behind the scene should based on Upstash Redis, so it's the same offering. Another solution is to put behind the authentication. Definitively not as bullet proof as the rate limiting. But, you can combine rate limiting and authentication to prevent spam. I think Vercel KV and Upstash is a good start for rate limiting but if you want to further, I would suggest Arcjet . They provide rate limiting, bot protection, and more to secure your routes. They have a pretty generous free tier. I use it in Next.js Boilerplate , you can take a look as inspiration. More on reddit.com
🌐 r/nextjs
7
9
February 23, 2025
Upstash Redis
Hi, I am trying to review the Upstash Redis solution provided by fly, but having some difficulties and also some questions. Maybe someone can help out with more information. The first doubt I have is if the database provided here is fully compatible with Redis, meaning TCP persistent connection ... More on community.fly.io
🌐 community.fly.io
1
0
January 13, 2023
Lack of transactions in Upstash Redis REST api, potential fixes? : redis
I'm trying to use Upstash Redis as the main database for my application, with the [@upstash/redis](https://www.npmjs.com/package/@upstash/redis)... More on old.reddit.com
🌐 r/redis
Upstash Redis Commands usage incremented even without being used
Monitoring, at a guess? To get the numbers for the dashboard, typically something would be running Redis commands to populate it - scan to get all the keys, dbsize to see how big it is, etc. More on reddit.com
🌐 r/redis
4
0
January 22, 2025
🌐
PyPI
pypi.org › project › upstash-redis
upstash-redis · PyPI
Inspired by other Redis clients like @upstash/redis and redis-py, the goal of this SDK is to provide a simple way to use Redis over the Upstash REST API.
      » pip install upstash-redis
    
Published   Oct 22, 2025
Version   1.5.0
🌐
Heroku Dev Center
devcenter.heroku.com › articles › upstash-redis
Upstash for Redis®* | Heroku Dev Center
August 24, 2022 - Serverless Database for Redis® with durable storage and low latency. Upstash is a serverless database with Redis API and durable storage.
🌐
Vercel
vercel.com › marketplace › upstash
Upstash for Vercel – Vercel
Upstash Redis: Upstash provides a serverless database service that is compatible with the Redis API.
🌐
Reddit
reddit.com › r/nextjs › is upstash redis free tier enough for rate limiting?
r/nextjs on Reddit: Is Upstash Redis free tier enough for rate limiting?
February 23, 2025 -

I'm developing a small public website for fun that makes calls to a route, which makes a few other calls to the OpenAI API, and I want to rate limit that route. I may be over-engineering a bit, but there's really nothing stopping an (anonymous) user from pasting a setInterval in their browser and spamming the API.

I've been researching for a while now and found that a lot of people have recommended Vercel KV, which I couldn't find anything updated (maybe it's deprecated?), and Upstash Redis. I tried the latter, and it was pretty easy and good, but then I realized that I had already made almost 1k out of 10k requests in the development environment in just a few hours (I use it for both caching and rate limiting), which means that eventually the API spam would affect the service anyway. Digging through the source code of the libraries, I found that there is an option to set the local cache behavior[1][2], but I'm not sure how effective it is.

For those who used the free tier, was it enough? Does Vercel have anything for free that could help, since this also affects their infrastructure?

🌐
npm
npmjs.com › package › @upstash › redis
@upstash/redis - npm
2 weeks ago - An HTTP/REST based Redis client built on top of Upstash REST API.. Latest version: 1.35.8, last published: 11 days ago. Start using @upstash/redis in your project by running `npm i @upstash/redis`. There are 256 other projects in the npm registry ...
      » npm install @upstash/redis
    
Published   Dec 12, 2025
Version   1.35.8
Author   Andreas Thomas
Find elsewhere
🌐
GitHub
github.com › upstash
Upstash · GitHub
Upstash is a Serverless Data Platform offering Redis, Vector Database, QStash, and Workflow APIs.
🌐
Fly.io
fly.io › docs › upstash › redis
Upstash for Redis®*
Select a database to connect to empty-water-3291 (sjc) 200M Proxying local port 16379 to remote [fdaa:0:6d6b:0:1::3]:6379 127.0.0.1:16379> set foo bar OK 127.0.0.1:16379> get foo "bar" 127.0.0.1:16379> ``` ### Update a Redis database Upstash Redis instances can't change their primary region or name, but the following may change: * Read regions * Pricing plan * Eviction settings Use `flyctl redis update` and follow the prompts.
🌐
GitHub
github.com › tinacms › upstash-redis-level
GitHub - tinacms/upstash-redis-level
const { RedisLevel } = require('upstash-redis-level') const { Redis } = require('@upstash/redis') const db = new RedisLevel({ redis: new Redis({ url: process.env.KV_REST_API_URL || 'http://localhost:8079', token: process.env.KV_REST_API_TOKEN || 'example_token', }), debug: process.env.DEBUG === 'true' || false, }) // Add an entry with key 'a' and value 1 await db.put('a', 1) // Add multiple entries await db.batch([{ type: 'put', key: 'b', value: 2 }]) // Get value of key 'a': 1 const value = await db.get('a') // Iterate entries with keys that are greater than 'a' for await (const [key, value] of db.iterator({ gt: 'a' })) { console.log(value) // 2 }
Starred by 3 users
Forked by 3 users
Languages   TypeScript 93.3% | JavaScript 6.7%
🌐
Pub.dev
pub.dev › packages › upstash_redis › versions
upstash_redis package - All Versions
October 2, 2023 - upstash/redis is an HTTP/REST based Redis client for dart, built on top of Upstash REST API. More... Readme · Changelog · Example · Installing · Versions · Scores · 12 versions · 6 · likes · 150 · points · 57 · downloads · ...
Published   Jul 13, 2022
Version   2.0.0
🌐
X
x.com › upstash
Upstash (@upstash) / X
April 7, 2020 - Serverless Database for Redis. Designed for the serverless with per-request pricing and Redis API on durable storage. Use Upstash as much as you need, you'll never pay more than $120/month for standard databases, guaranteed.
🌐
Dragonfly
dragonflydb.io › guides › upstash-solution-overview-pros-cons-and-alternatives
Upstash: Solution Overview, Pros/Cons, and Alternatives
July 21, 2025 - Upstash is a serverless data platform intended for developers building real-time and event-driven applications. It provides managed data stores (i.e., Redis) and a messaging platform (QStash) with flexible pricing options.
🌐
YouTube
youtube.com › watch
Learn Redis in 40 Minutes - Upstash Redis - YouTube
Upstash Redis: https://upstash.com/?utm_source=tom1GitHub Repository: https://github.com/TomDoesTech/learn-redisBuild & Deploy a Realtime App that Scales wit...
Published   March 10, 2024
🌐
Bejamas
bejamas.com › hub › serverless-database › upstash-redis
Upstash Redis
Upstash Redis · Xata.io · Upstash Redis · Compare with...
🌐
DigitalOcean Marketplace
marketplace.digitalocean.com › add-ons › upstash-redis
Upstash Redis | DigitalOcean Marketplace Add-Ons
DigitalOcean Marketplace lets developers easily discover and quickly launch services, components and tools from the open source projects and companies that they love.