Update:Our Privacy Policy has changed

Knowledge Base

Guides, comparisons and how-tos from the Upstash team.

How to Add Memory to a Vercel Eve Agent with Redis

Add chat history and long-term user memory to a Vercel Eve agent with Upstash Redis and the AgentKit Eve adapter.

Cahid Arda OzCahid Arda Oz

How to Add Memory to a TanStack AI Agent with Redis

Add chat history and long-term user memory to a TanStack AI agent with Upstash Redis and the AgentKit TanStack AI adapter.

Cahid Arda OzCahid Arda Oz

How to Add Memory to a Vercel AI SDK Agent with Redis

Add chat history and long-term user memory to a Vercel AI SDK agent with Upstash Redis and AgentKit.

Cahid Arda OzCahid Arda Oz

Upstash Blob vs UploadThing: Which Is Better for File Uploads in React and Next.js?

Upstash Blob vs UploadThing for React and Next.js file uploads: pricing, code, maintenance, and a November 2026 upload benchmark.

JoshJosh

AWS S3 vs Cloudflare R2 vs Upstash Blob for Next.js (2026)

AWS S3 vs Cloudflare R2 for a Next.js app, compared on pricing, egress fees, S3 compatibility, presigned uploads and Vercel's 4.5 MB limit, and why Upstash Blob is the better pick for most Next.js apps.

YusufYusuf

Best Algolia Alternatives in 2026

The best Algolia alternatives in 2026, compared on pricing, typo tolerance, search-as-you-type and hosting: Upstash Redis Search, Typesense, Meilisearch, Elasticsearch, OpenSearch, Orama and Postgres.

YusufYusuf

Best S3 Alternatives in 2026

The best S3 alternatives in 2026, compared on pricing, egress, S3 compatibility and browser uploads, with a pick for each use case.

YusufYusuf

Where Should You Store User-Uploaded Files in a Web App?

"Store uploads in object storage and keep only the key in your database. The upload flow, OWASP rules, and 2026 storage prices."

YusufYusuf

Best Vercel Blob Alternatives in 2026

"Vercel Blob alternatives compared on real pricing: Upstash Blob, R2, S3, Supabase, UploadThing, Tigris, Cloudinary and B2, with worked bills and migration code."

YusufYusuf

How TTL Jitter Protects Your Database When Redis Keys Expire Together

We bulk-loaded a cache on real Upstash Redis and watched the keys expire, with and without TTL jitter. See how much jitter lowers the miss spike, how it protects the database behind the cache, and how wide to make it.

JoshJosh

Why Lua Scripts Beat WATCH When Many Clients Update One Redis Key

We ran 1,000 updates on one Redis key with up to 100 clients using WATCH, Lua scripts and a plain read then write. See how much faster a script is, how many updates go missing without one, and how to keep scripts from stalling other clients.

JoshJosh

How Big Should a Redis Key Be?

We grew Redis values and hashes on real Upstash databases to find how big a key can get. See where reads slow down, the 10 MB limit on one reply, the stall on a 1 million field hash, and how to split a big key.

JoshJosh

How to List Keys in Redis Safely With SCAN

We ran KEYS and SCAN against 1 million keys on Upstash Redis and stock Redis 8. See how much SCAN helps, when KEYS stops working, what COUNT to use, and why a key prefix matters more than COUNT.

JoshJosh

Why MGET Is Faster Than a Redis Pipeline for Reading Many Keys

We read 1,000 to 200,000 keys from a real Upstash Redis database with awaited GETs, pipelines and MGET. See how much each one speeds things up, what it costs in commands, where each one hits a limit, and how big to make a chunk.

JoshJosh

What a sandbox protects you from, and what it doesn't

The standard response to "how can I run a coding agent safely" is "put it in a sandbox." To that end, Pillar Security spent some time in July 2026 attacking the sandboxes of Cursor, Codex, Gemini CLI and Antigravity. They found seven vulnerabilities across the four tools. And almost every time, the agent did not escape the sandbox.

Ali Tarık ŞahinAli Tarık Şahin

How to Keep API Keys Out of Your Agent's Sandbox

So you sandbox your coding agent. That way, a bad command won’t touch your laptop. To get it to do its job, you set OPENAIAPIKEY and GITHUBTOKEN environment variables, which the agent can then use. The sandbox protects the host, but it does nothing to protect the credentials that the agent can access.

Ali Tarık ŞahinAli Tarık Şahin

What an Idle Agent Sandbox Actually Costs

Your coding agent sends a prompt. It waits. It then runs a test for a few seconds. Then, it waits some more. It’s even worse for scheduled agents. They’ll wake up, check their queue, find nothing, and then go back to sleep for 15 minutes. In the meantime, most sandboxes charge you for two vCPUs and four gigabytes of memory, just as if your agent had been compiling something the whole time.

Ali Tarık ŞahinAli Tarık Şahin

Railway Redis vs Upstash: Which Redis for Your Railway App?

If you have an app that's hosted on Railway and you want to use Redis for your cache, sessions, or for a queue, you can either add a Redis service to the Railway project with a few clicks, or use Upstash to provide a managed Redis database outside Railway. To connect your app to either Redis service, you'll need a standard Redis client, and a REDISURL environment variable.

Cahid Arda OzCahid Arda Oz

How to Add Memory to an AI Agent with Redis

In order to add memory to an AI agent, you need to store things outside the model and load them into the prompt with every turn. When the model responds to your message, you need to write new things back to memory. For most agents, short-term memory (what you talked about most recently) and long-term memory (what you know about the user) are the most important.

Cahid Arda OzCahid Arda Oz

Express Redis Cache: Add Upstash Redis to Any Node.js App

When an Express route reads from a slow database, every request waits for that query. A Redis cache keeps the result after the first request, so the next requests for the same data skip the database and take one round trip to Redis.

Cahid Arda OzCahid Arda Oz

Cloudflare R2 Pricing in 2026: Storage, Operations, and Real Monthly Bills

Cloudflare R2 is priced at $0.015 per GB per month for storage with no egress charges. That means if users download 20 TB of data from your R2 bucket in a month, that part of your bill will be $0. For S3, the same amount of data would be charged at $0.09 per GB after the first 100 GB.

YusufYusuf

The Best React File Upload Libraries in 2026

We built the same uploader with eight React upload libraries and measured the JavaScript each one adds, then ran Upstash Blob's hook in a real browser with a 48 MB file, a pause and a page reload.

JoshJosh

Thundering Herd Problem: How Cache Stampedes Happen and 5 Ways to Stop Them

Of course, a cache only protects your database as long as the key is present. If you have a highly-accessed key expire during a high traffic period, you’ll have a stampede of requests that miss all at once in the subsequent few hundred milliseconds. All of those requests will then fall back to the database, exposing the database to the load the cache was meant to prevent.

Cahid Arda OzCahid Arda Oz

Web Application Caching: Browser, CDN and Server-Side Caching Explained

A product page, which always reads the same row from the database, pays thousands of times per day for the same query. Caching stores a copy of the result near the user, so subsequent requests don’t have to do the work. A web application has a few different places to cache the result, each of which has a different expiry rule and mechanism for eviction.

Cahid Arda OzCahid Arda Oz

How to Safely Run AI-Generated Code in a Code Sandbox: 7 Isolation Controls

LLMs are no longer just text generators. Today we have coding assistants, data analysts and chat apps that can write code on behalf of the user, which is executed immediately. This turns LLMs into a very powerful tool, but also introduces a new set of risks.

Ali Tarık ŞahinAli Tarık Şahin

T3 Code vs herdr vs Conductor vs Cloudroom: Which Coding Agent App to Use

Developers are currently running many coding agents at the same time: one creating a new feature, one reviewing it, one fixing the tests. The speed of the coding agents makes us the slow part. When you use Claude Code or Codex, you can open a new terminal tab for each of the coding agents, then open up each of those tabs and check if they’re done, or even if they’re waiting on your approval.

Ali Tarık ŞahinAli Tarık Şahin

OpenCode vs Pi vs Gemini CLI vs CrewAI vs Goose: 9 agent harnesses compared

OpenCode, Pi, Gemini CLI, Copilot CLI, Aider, Goose, Amp, Pydantic AI and CrewAI all promise the same thing: give a model a prompt and some tools, and it does the work. One-line summaries like "multi-provider coding agent", "git-aware code editor" or "type-safe agent framework" make them look like nine ways to do the same job. They behave very differently.

Ali Tarık ŞahinAli Tarık Şahin

Vercel AI SDK vs TanStack AI: A Detailed Comparison

If you want to add AI chat or an agent to your TypeScript application, the two main options are Vercel AI SDK and TanStack AI. The Vercel AI SDK provides a complete toolkit that is stable, with about 18.5 million npm downloads a week, has many providers, and offers pre-built agents. TanStack AI, on the other hand, consists of pluggable pieces and is a younger, strictly-typed tool with pieces you can swap out.

Ali Tarık ŞahinAli Tarık Şahin