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
🌐
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?

🌐
Reddit
reddit.com › r/redis › upstash redis commands usage incremented even without being used
r/redis on Reddit: Upstash Redis Commands usage incremented even without being used
January 22, 2025 -

I am a beginner in database usage and I've decided to explore my option, and landed on redis with serverless option by Upstash. I've been following along this great video by Josh tried coding

However, as I implement my code, the commands usage in the Upstash dashboard keeps on incrementing by the seconds without me making any call to the Upstash redis. It looks something like this

with SCAN, EVAL being the most used even though the operation that I'm using are `rpush`, `sadd`, `hset`. But after a while those commands usage in the dashboard resets back to 0.

Is this something i should worry about, or is it just a normal behaviour?

Cheers

🌐
Reddit
reddit.com › r/vercel › redis vs upstash redis on vercel functions
r/vercel on Reddit: Redis vs Upstash Redis on Vercel Functions
November 3, 2025 -

I'm using fluid compute Node.js (not edge). Is Upstash Redis or Redis better? I notice under Redis it says "Serverless Redis", but how is it serverless? I thought Upstash Redis was HTTP-based (good for serverless) and Redis was TCP based (bad for tons of connections).

🌐
Reddit
reddit.com › r/nextjs › what happends when you reach the upstash redis limit?
r/nextjs on Reddit: What happends when you reach the Upstash Redis limit?
April 3, 2023 -

Lets say I had this code and I'm using Upstash.

async function getMovieById(id) {
   let movie = await redis.get(`movies/${id}`);
   if (movie) {
      return movie;
   } 

   movie = await db.findMovieById(id);
   invariant(movie != null, "movie not found");
   await redis.set(`movies/${id}`, movie);
   return movie;
}

If I reach my free limit on space/request/etc on upstash redis, will this throw an exception and my endpoint will be f*ck?

I want to be sure If I need to abstract all to avoid those exceptions

🌐
Reddit
reddit.com › r/redis › lack of transactions in upstash redis rest api, potential fixes?
r/redis on Reddit: Lack of transactions in Upstash Redis REST api, potential fixes?
May 19, 2022 -

I'm trying to use Upstash Redis as the main database for my application, with the @upstash/redis REST client since it's a serverless application. Currently I'm modeling my data like this:

  const accountId = '123';
  const accountData = {
    email: '[email protected]',
    slug: 'abc',
    ...other account data,
  }
  await redis.set(`account:${accountId}`, JSON.stringify(accountData));
  await redis.set(`email:${accountData.email}`, accountId);
  await redis.set(`slug:${accountData.slug}`, accountId);

This lets me store all my account data in a single record, and then be able to fetch that by email or slug. My worry is the first action will create the account record, and then something will happen to cause the second and/or third action to fail leaving the account data siloed and inaccessible.

The issue with this (other than the unused storage growth implications) is that my application is privacy focused and I want users to have the ability to know/delete all the data I store about them, and I can't do that if theres siloed copies stored all over the place I can't find.

In REST API docs in says that transactions aren't supported so I cant use that. Is there any other way to mitigate this issue or is just something I'll have to live with and hope it doesn't happen often?

🌐
npm
npmjs.com › package › @upstash › redis
upstash/redis
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
🌐
Reddit
reddit.com › r/redis › redis cloud or traditional self-hosted redis
r/redis on Reddit: Redis Cloud or Traditional Self-Hosted Redis
June 24, 2024 -

I've made a chat-application project using spring boot, where i'm sending chat messages to kafka topics as well as local redis. It will check first if messages are present in redis, if yes it will populate the ui otherwise it will fetch data from kafka. If I host this application on cloud, how will i make sure that local redis server is up and running on the client side. For this, if i use a hosted redis server for eg. upstash redis which will be common for all redis clients, how will it serve the purpose of speed and redundancy, because in any case the client has to fetch data from hosted redis or hosted kafka.

I used redis for faster operations, but in this case how will a hosted redis ensure of a faster operation.

Top answer
1 of 2
4
Network latency is usually the biggest bottleneck to overcome when using a distributed cached like Redis. Typically, you'll want to host Redis on the same network you are using for the rest of your application. In this case, that sounds like wherever the client is hosted. If that is a user's computer, then making sure Redis is running could be a real challenge. I normally run Redis locally and use Docker to do it all. Not sure if that's a good option for you or not. If your application is installed as a Linux package, you could install Redis that way but I don't have a ton of experience with that. Also, don't assume you are the only application putting stuff in Redis. Other tools could be using Redis as well on a user's desktop or laptop. You could step on their stuff and they could step on yours. If you chose to go with a Redis cloud option, it should be hosted where Kafka is hosted. Redis will still be faster than Kafka but you'll have to live with the network latency. Do be aware that not all Redis-compatible cloud options are the same. You may want to do some benchmarking and select an offering accordingly. Also, just to help out with terminology, the pattern you are describing is called cache-aside caching.
2 of 2
1
Why not push the messages directly into kafka, then from kafka into redis using kafka connect for the read path? You fna use keyspace notifications to trigger your websockets (or equivalent) and have local chat history in a cache already. This gives you the option to have kafka buffer/decouple messages and write to a search database if you need that as well.
🌐
Upstash
upstash.com › docs › redis › howto › connectwithupstashredis
Connect with upstash-redis - Upstash Documentation
If you define UPSTASH_REDIS_REST_URL andUPSTASH_REDIS_REST_TOKEN environment variables, you can load them automatically.
Find elsewhere
🌐
Reddit
reddit.com › r/redis › redisjson on upstash?
r/redis on Reddit: RedisJSON on Upstash?
September 20, 2021 -

Can you use modules such as RedisJSON and RediSearch on Upstash?

I've only used the ioredis client for light use of simple data structures.
While I have been brushing up on RedisJSON, I cannot find any documentation for it's use on Upstash. Also reJson commands didn't seem to be recognized by the Upstash dashboard CLI.

If they do not have support, any leads on where I should turn? RedisLabs perhaps?

🌐
Reddit
reddit.com › r/upstash › upstash redis tls problem
r/upstash on Reddit: Upstash Redis TLS problem
March 2, 2024 - Hi, I hope someone is reading this group. I'm struggling with a problem in communicating with Redis on Upstash via TLS, which is now mandatory. I…
🌐
PyPI
pypi.org › project › upstash-redis
upstash-redis · PyPI
To be able to use upstash-redis, you need to create a database on Upstash and grab UPSTASH_REDIS_REST_URL and UPSTASH_REDIS_REST_TOKEN from the console.
      » pip install upstash-redis
    
Published   Oct 22, 2025
Version   1.5.0
🌐
Reddit
reddit.com › r/vercel › isn't the rate limiting solution offered by vercel using upstash redis still a risk?
r/vercel on Reddit: Isn't the rate limiting solution offered by Vercel using Upstash Redis still a risk?
March 16, 2025 -

Reference: https://vercel.com/templates/next.js/api-rate-limit-upstash

If I understand correctly, even after the user hits their limit and starts getting 429 back (which would then not hit the serverless endpoint for the next edge function)-- they could still continue to spam which would then still accrue lots of costs on the Redis Upstash KV side, right? Or am I misunderstanding something?

If I'm not misunderstanding, is there a way to have a spend cap on Upstash KV?

🌐
Upstash
upstash.com
Upstash: Serverless Data Platform
"Before Upstash QStash, we struggled with upload reliability and request failures, but with their support, we've achieved over 99.9% reliability for millions of users. Their seamless integration with our serverless architecture has made developing new features, like importing entire knowledge bases, much simpler." "We were using Redis before for our cache but we saw great support from the Upstash team when we grew to handle more conversations and had difficulty keeping up with the growth.
🌐
Supabase
supabase.com › docs › guides › functions › examples › upstash-redis
Upstash Redis | Supabase Docs
2 days ago - Select the Global type to minimize the latency from all edge locations. Copy the UPSTASH_REDIS_REST_URL and UPSTASH_REDIS_REST_TOKEN to your .env file.
🌐
Reddit
reddit.com › r/redis › help a frontend newbie choose a proper redis!
r/redis on Reddit: Help a frontend newbie choose a proper Redis!
March 17, 2024 -

I'm building a little website for my wife's shop currently, and my frontend part is using NextJS and is deployed on Vercel. Just recently I realized that I need some backend, a small database practically, for keeping the order forms from potential clients. Additionally, the db might come in handy in the future, if we decide to develop the store.

So, Vercel has its Redis instance (Vercel KV), but it's struggling with finding the keys in the env files for some reason (error example: '@vercel/kv: Missing required environment variables KV_REST_API_URL and KV_REST_API_TOKEN'). Also, Upstash has a Redis instance, which looks like Vercel KV. And we have pure Redis with its downloadable GUI.

Which one to choose or there's no big difference, just some features, prices and interfaces? I've been triyng Vercel KV for a couple of days, but it won't work.

🌐
Reddit
reddit.com › r › upstash › rising
r/upstash
December 29, 2021 - I have a free-tier Redis instance on Upstash, which I can communicate with fine using redis-cli.
🌐
Reddit
reddit.com › r/vercel › upstash redis issue with vercel pro
r/vercel on Reddit: Upstash Redis issue with Vercel Pro
July 18, 2025 -

Hello everyone!

I haven't been able to find a solution and I hope you can help me. I have a JS project that works with an Upstash Redis KV config. This one works great with my Vercel Free account.

However, I created a fork of my repo into my client’s GitHub that has a Vercel Pro account and when I create the same Upstash configuration that I’m using in my personal account, it doesn’t work. I already tried the “ioredis” library and also the REST endpoint, nothing worked.

Any suggestions? Is this related to the Vercel Pro account or something else?

Thank you!🙏🏻