Home / Benchmarks / At 100k QPS
Verdict: At this load the threading difference starts to show: Memcached spreads requests across worker threads while Redis executes commands on one thread, and one team's production test at 150k requests per second measured Memcached's P99 at 1.1 ms against Redis's 3.4 ms. Redis narrows the gap with pipelining and I/O threads. Engine choice has real cost implications at this scale because instance size scales with throughput.

Redis vs Memcached at 100k QPS

One hundred thousand queries per second is where engine performance starts to translate into infrastructure cost. The Memcached multi-threading advantage becomes measurable, Redis pipelining becomes essential, and instance-sizing decisions affect the monthly bill in meaningful ways.

1.1 vs 3.4 ms
P99, Memcached vs Redis
One team, 150k req/s peak, Dev Genius Mar 2026
1 thread
Redis command execution
I/O threads offload sockets and parsing only
cache.r7g.xl
Comfortable for 100k QPS
4 vCPU, 26GB RAM, $0.437/hr on-demand, us-east-1
N:1
Pipelining
N commands, one network round trip

Where the Memcached edge becomes visible

One published production test (Dev Genius, 12 March 2026) ran both engines at a 150,000 requests-per-second peak on 8-core AWS instances with ~300-byte objects. Memcached averaged 0.5 ms against Redis's 0.8 ms, with P99 at 1.1 ms against 3.4 ms, and the author found one Redis core maxed out while Memcached used all 8. At 1k QPS that gap is invisible. At 100k QPS and above it can decide the instance size. It is one team's test on one workload, so treat the magnitude as indicative.

The technical reason for the gap traces to threading. Memcached runs a pool of worker threads (4 by default, set with -t) and spreads connections across them, so the workload distributes across CPU cores naturally. Redis executes commands on a single thread (since Redis 6, optional I/O threads handle socket reads, writes and parsing) which means a single hot key has a hard throughput ceiling at single-thread speed. At 100k QPS spread across many keys, both engines have plenty of headroom; at 500k+ on a single hot key the Redis ceiling appears first.

The translation to cost: at 100k QPS, the instance-size requirement for Redis might be one tier larger than for Memcached on the same workload (cache.r7g.xlarge for Redis versus cache.r7g.large for Memcached, doubling the per-hour cost). For pure-cache workloads this is a meaningful per-month difference. For workloads where Redis features are needed, you pay the throughput penalty in exchange for the features.

Pipelining is the great equaliser for Redis

Everything above assumes one command per network round trip. When Redis is allowed to pipeline (batch multiple commands in one round trip), the picture changes: the client stops paying a round trip per command, which is usually the largest cost at this scale. Measure it on your own workload with redis-benchmark -P 16 or memtier_benchmark --pipeline rather than trusting anyone's headline multiple.

The reason is that Redis pipelining is the canonical optimisation pattern and Redis is heavily optimised for it. The client library bundles commands into pipeline batches automatically (BullMQ, Sidekiq, and most queue libraries do this aggressively). Memcached pipelining exists but is less commonly used; most Memcached clients send one command at a time.

In production, the workloads that hit 100k+ QPS almost always have natural batching opportunities: per-request fetching of N cached fragments, periodic batch operations, queue drainage. If your application can express its cache access pattern as batches, Redis pipelining closes the throughput gap with Memcached and often crosses it. Designing applications to pipeline-friendly is a real lever; the engine choice is less load-bearing than the access-pattern choice.

Instance sizing and reservation

For a 100k QPS workload with HA (primary + 1 replica) on AWS ElastiCache, a typical sizing is cache.r7g.xlarge for either engine. AWS lists it at $0.437 an hour on-demand (us-east-1, Redis OSS or Memcached, read from the AWS price list in November 2026), about $319 a month per node at 730 hours, so about $638 a month for the pair. Valkey nodes list at $0.3496 an hour, 20% less.

At this scale, reservations start to matter financially. A 1-year all-upfront reservation for cache.r7g.xlarge is $2,450 per node (about $204 a month); a 3-year all-upfront one is $5,168 (about $144 a month, roughly 55% below on-demand), taking the pair from about $638 to about $287 a month. For predictable production workloads with a multi-year planning horizon, this is straightforwardly worth doing. For workloads with uncertain growth, the on-demand premium is the cost of optionality.

The data-transfer cost surprises some teams. At 100k QPS with 1KB average values, you are pushing 100MB/s through the cache. Check the data-transfer lines on the ElastiCache pricing page for your topology before you size the budget: Multi-AZ is not free at this volume; single-AZ saves the data-transfer cost but loses the cross-AZ failure domain isolation. The right answer depends on your availability requirements; do not assume Multi-AZ is free.

The hot-key problem

At 100k QPS spread evenly across millions of keys, both engines are comfortable. The problem appears when traffic is skewed: a single very popular key (a viral piece of content, a global rate-limit counter, a leaderboard for one massively popular event) generates 50k+ QPS on its own. Both engines have hard per-key throughput ceilings.

For Memcached, every request for a key lands on the one node that owns it, so that node's CPU and network set the per-key ceiling; neither project publishes a figure, so measure it with memtier_benchmark against a single key. Beyond that you need to shard the key across multiple Memcached nodes, which means changing application code to use suffixed key variants (key:0, key:1, ..., key:15) and aggregating reads.

For Redis, the per-key ceiling is the single command-execution thread of the shard that owns the key: one CPU core. Same mitigation: shard the key with random suffixes and merge in the read path. Redis Cluster's hash-tag mechanism can be used to ensure related sharded keys land in the same slot for atomic operations across them. Hot-key handling at 100k+ QPS is an application-level architectural concern, not an engine-choice concern.

FAQ

What instance size handles 100k QPS?

Roughly cache.r7g.large to cache.r7g.xlarge (2-4 vCPU, 13-26GB RAM) for either engine. Memcached can sustain 100k QPS on slightly smaller hardware due to multi-threading; Redis benefits from a few more cores for its I/O threads. AWS lists cache.r7g.large at $0.219 an hour and cache.r7g.xlarge at $0.437 an hour on-demand (us-east-1, Redis OSS or Memcached), about $160 and $319 a month per node; Valkey nodes list 20% lower.

Does pipelining matter?

Massively, especially for Redis. Pipelining sends many commands in one network round trip, so throughput stops being capped by round-trip latency. Measure the gain on your own workload with redis-benchmark -P 16 or memtier_benchmark --pipeline. Memcached supports pipelining too (multi-get and the meta protocol), but most Memcached clients send one command at a time.

When do I need to shard?

Shard when one node runs out of headroom: the Redis command thread pinned near 100% of a core, or the node's network close to its limit. Until then, you either scale up to a bigger instance or shard. Sharding adds complexity (client topology awareness for Redis Cluster, consistent hashing for Memcached) so scale-up is usually preferable until you hit the largest practical instance size.

What about read replicas for read-heavy workloads?

Redis read replicas let you scale reads horizontally without sharding: writes go to primary, reads route to up to 5 replicas. For read-heavy workloads at 100k QPS this can be more cost-effective than a bigger primary. Memcached has no equivalent because it has no replication.

Network bandwidth as the bottleneck?

At 100k QPS with 1KB values, you are pushing 100MB/s of payload, or roughly 1Gbps. Modern instances easily handle this; an older cache.m4 or cache.t2 generation might saturate the NIC before the engine. Check the network spec of the instance type and confirm you have headroom.

Related decisions

At 1k QPS
Where engine choice does not matter
Memory efficiency
Per-item overhead at scale
ElastiCache pricing
Instance size cost ladder
All benchmarks
Hub

Didn't find your answer?

Ask us. A real person reads every question and we answer the ones we can, with sources. If your question would help other readers, we may publish an anonymised version, with your permission. General reference only.

Ask a question

questions@redisvsmemcached.com