<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/platformatic-memcached-a-faster-client-for-node-js-sbcwg0buh" -->

---
title: Platformatic Memcached: A Faster Client for Node.js
description: Platformatic released @platformatic/memcached, a zero-dependency Node.js client built on memcached's meta text protocol. It uses full request pipelining,...
canonical: https://daily.dev/posts/platformatic-memcached-a-faster-client-for-node-js-sbcwg0buh
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Platformatic Memcached: A Faster Client for Node.js | daily.dev
og:description: Platformatic released @platformatic/memcached, a zero-dependency Node.js client built on memcached's meta text protocol. It uses full request pipelining,...
og:url: https://daily.dev/posts/platformatic-memcached-a-faster-client-for-node-js-sbcwg0buh
og:image: https://api.daily.dev/og/posts/SBCWg0BUh.png
og:image:alt: Platformatic Memcached: A Faster Client for Node.js
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Platformatic Memcached: A Faster Client for Node.js

**[Platformatic](https://daily.dev/sources/platformatic)** · 10 min read · 4 upvotes · 1 comments

## Summary

Platformatic released @platformatic/memcached, a zero-dependency Node.js client built on memcached's meta text protocol. It uses full request pipelining, incremental buffer parsing, and coalesced writev socket writes, claiming over 350,000 SETs and 369,000 GETs per second on a single connection, roughly 3x faster than the fastest alternative tested. Features include client-side sharding with ketama-style consistent hashing, AWS ElastiCache auto discovery, TLS/auth support, connection pooling, exponential backoff reconnection, and built-in observability via metrics and OpenTelemetry tracing. The client backs Platformatic Gateway's request deduplication feature and is currently private and experimental, though production-tested against real memcached servers.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.platformatic.dev/introducing-platformatic-memcached>

## Questions this post answers

### What is the meta protocol in memcached and why should I use it instead of the classic text protocol?

The meta protocol, added in memcached 1.6, replaces both the classic text and deprecated binary protocols with compact single-line commands, clear flags, and length-prefixed data blocks so values containing \r\n are handled safely. It supports opaque tokens for matching responses and CAS on every command including delete, including delete. It is the recommended protocol for new memcached clients.

_Developers picking a memcached protocol for new code track these tradeoffs on daily.dev._

### Why is pipelining a single memcached connection faster than using a connection pool?

A single pipelined connection outperformed a 10-connection pool in benchmarks because memcached processes commands in order per connection, so responses can be matched with a FIFO queue without per-request locking, and writes get coalesced into single writev system calls. One client using this approach reached over 350,000 SETs and 369,000 GETs per second, about 3x faster than the fastest pooled alternative tested.

_Teams tuning cache client throughput compare pipelining versus pooling strategies on daily.dev._

### How does client-side sharding work for memcached since it has no server-side clustering?

Because memcached lacks a server-side clustering protocol, sharding happens on the client using ketama-style consistent hashing with 160 points per node on a 32-bit md5 ring. This means adding or removing a node remaps only about 1/N of the keyspace, and routing stays consistent across processes and restarts; if a node goes down, its keys are rejected rather than rehashed elsewhere to avoid stale reads.

_Engineers designing distributed memcached deployments weigh sharding approaches like this on daily.dev._

## Community discussion

Top comments from developers on daily.dev.

**@pdfopsdev** · 1 upvotes

> 350k ops/sec on a pipelined single connection is a great number but I always want the p99 latency next to it, pipelining trades latency for throughput and most real workloads are single-key gets that don't pipeline well. neat that they built a dedicated memcached client instead of just reaching for ioredis by default.

## Similar posts on daily.dev

- [kafka 223% Faster \(And What We Learned Along the Way\)](https://daily.dev/posts/kafka-223-faster-and-what-we-learned-along-the-way--anrb0emmw) · Platformatic · 73 upvotes · 0 comments
- [Figma's next-generation data caching platform](https://daily.dev/posts/figma-s-next-generation-data-caching-platform-7xmmcoyfj) · Figma · 1 upvotes · 0 comments
- [TanStack dominance intensifies](https://daily.dev/posts/tanstack-dominance-intensifies-raf2r08in) · Bytes by ui.dev · 16 upvotes · 3 comments
- [How Booking.com cut Node.js costs by 38% with Watt](https://daily.dev/posts/how-booking-com-cut-node-js-costs-by-38-with-watt-tbbnjyj52) · Adventures in Nodeland · 75 upvotes · 12 comments
- [Moving Marketing Cloud Caching from Memcached to Redis at 1.5M RPS](https://daily.dev/posts/moving-marketing-cloud-caching-from-memcached-to-redis-at-1-5m-rps-epsn0tifr) · Salesforce Engineering · 1 upvotes · 0 comments

---

Tags: [#performance](https://daily.dev/tags/performance), [#nodejs](https://daily.dev/tags/nodejs), [#opentelemetry](https://daily.dev/tags/opentelemetry)

[View this post on daily.dev](https://daily.dev/posts/platformatic-memcached-a-faster-client-for-node-js-sbcwg0buh)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Platformatic Memcached: A Faster Client for Node.js","url":"https://daily.dev/posts/platformatic-memcached-a-faster-client-for-node-js-sbcwg0buh","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/platformatic-memcached-a-faster-client-for-node-js-sbcwg0buh"},"datePublished":"2026-09-15T20:05:14.996Z","dateModified":"2026-09-15T20:05:39.259Z","description":"Platformatic released @platformatic/memcached, a zero-dependency Node.js client built on memcached's meta text protocol. It uses full request pipelining,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e0f1e40e5c28ef6fc8d344956897410c?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e0f1e40e5c28ef6fc8d344956897410c?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Platformatic","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Platformatic","logo":"https://media.daily.dev/image/upload/s--mtLTNLFl--/f_auto/v1721999416/logos/platformatic","url":"https://daily.dev/sources/platformatic"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/platformatic-memcached-a-faster-client-for-node-js-sbcwg0buh","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":4},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"performance,nodejs,opentelemetry","timeRequired":"PT10M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Platformatic","item":"https://daily.dev/sources/platformatic"},{"@type":"ListItem","position":3,"name":"Platformatic Memcached: A Faster Client for Node.js"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/platformatic-memcached-a-faster-client-for-node-js-sbcwg0buh","comment":[{"@type":"Comment","text":"350k ops/sec on a pipelined single connection is a great number but I always want the p99 latency next to it, pipelining trades latency for throughput and most real workloads are single-key gets that don’t pipeline well. neat that they built a dedicated memcached client instead of just reaching for ioredis by default.","datePublished":"2026-09-16T18:21:12.213Z","url":"https://daily.dev/posts/SBCWg0BUh#c-dvUtogLv3","author":{"@type":"Person","name":"PDFops","url":"https://daily.dev/pdfopsdev","image":"https://media.daily.dev/image/upload/s---8isRBKc--/f_auto/v1782922291/avatars/avatar_orjMeK8QKaaVZwGq7ScPz?_a=BAMAMicg0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/platformatic-memcached-a-faster-client-for-node-js-sbcwg0buh#faq","mainEntity":[{"@type":"Question","name":"What is the meta protocol in memcached and why should I use it instead of the classic text protocol?","acceptedAnswer":{"@type":"Answer","text":"The meta protocol, added in memcached 1.6, replaces both the classic text and deprecated binary protocols with compact single-line commands, clear flags, and length-prefixed data blocks so values containing \\r\\n are handled safely. It supports opaque tokens for matching responses and CAS on every command including delete, including delete. It is the recommended protocol for new memcached clients. Developers picking a memcached protocol for new code track these tradeoffs on daily.dev."}},{"@type":"Question","name":"Why is pipelining a single memcached connection faster than using a connection pool?","acceptedAnswer":{"@type":"Answer","text":"A single pipelined connection outperformed a 10-connection pool in benchmarks because memcached processes commands in order per connection, so responses can be matched with a FIFO queue without per-request locking, and writes get coalesced into single writev system calls. One client using this approach reached over 350,000 SETs and 369,000 GETs per second, about 3x faster than the fastest pooled alternative tested. Teams tuning cache client throughput compare pipelining versus pooling strategies on daily.dev."}},{"@type":"Question","name":"How does client-side sharding work for memcached since it has no server-side clustering?","acceptedAnswer":{"@type":"Answer","text":"Because memcached lacks a server-side clustering protocol, sharding happens on the client using ketama-style consistent hashing with 160 points per node on a 32-bit md5 ring. This means adding or removing a node remaps only about 1/N of the keyspace, and routing stays consistent across processes and restarts; if a node goes down, its keys are rejected rather than rehashed elsewhere to avoid stale reads. Engineers designing distributed memcached deployments weigh sharding approaches like this on daily.dev."}}]}
```

