Tagged articles
memcache
14 articles · Page 1 of 1
Instagram grew from a simple photo‑sharing app to over 2.5 billion users, prompting engineers to adopt horizontal scaling, replace Python code with Cython, use region‑specific Cassandra clusters, employ the Akkio data‑placement service, and optimize PostgreSQL and Memcache handling to improve resource utilization, data consistency, and latency.
CassandraInstagramPostgreSQL
0 likes · 11 min read

The article details NetEase Cloud Music’s high‑concurrency cache architecture—using lazy‑load, hole‑wrapped objects for penetration protection, placeholder values for missing data, horizontal and vertical scaling with consistent hashing, and asynchronous binlog‑driven invalidation—to achieve sub‑millisecond reads for a read‑heavy, write‑light music library.
CachingScale-outcache invalidation
0 likes · 12 min read

This guide explains how to install, configure, and use Memcache in PHP for fast data storage, retrieval, and deletion, including connection setup, key‑value operations, cache miss handling, and optional advanced features to boost backend performance.
PHPmemcache
0 likes · 4 min read

This article explains various PHP caching techniques—including file‑system, memory (Memcache and Redis), and framework (Laravel) caches—providing code examples and configuration steps to reduce database load, speed up page rendering, and enhance overall user experience.
CachingLaravelPHP
0 likes · 5 min read

This article explains the fundamentals of Memcache in PHP, covering its purpose as an in‑memory cache, how to connect, store, retrieve, delete, increment, decrement, and flush data, along with important considerations such as data types, memory limits, server failures, and multi‑server sharing.
CachingPHPWeb Performance
0 likes · 5 min read

This article explains PHP data caching techniques—including memory, file, and database caches—provides practical code samples, and outlines key index design principles such as uniqueness, expiration, hotspot optimization, efficient updates, and hierarchical caching to improve performance.
File Cachedatabase cacheindex design
0 likes · 5 min read

This article explores the evolution from memcache to Redis, explains seven classic cache problems—including stampede, penetration, avalanche, hotspot, large keys, consistency, and concurrent pre‑warming—and provides practical design patterns and mitigation techniques for high‑traffic, large‑scale systems.
memcache
0 likes · 9 min read

This article explains the three major cache issues—penetration, breakdown, and avalanche—describes why they occur in high‑traffic systems, and presents four practical mitigation strategies including Bloom filters, short‑lived empty caches, distributed mutex locks with Redis or Memcache, and resource isolation with Hystrix.
BackendCacheDistributed Lock
0 likes · 9 min read

The article explains the concept of distributed session consistency, outlines the role and lifecycle of HTTP sessions, describes the challenges of sharing sessions across server clusters, and evaluates several practical solutions including database, cookie, Memcache, and Redis based approaches.
Sessiondistributedmemcache
0 likes · 5 min read

The intermittent set/add failures observed with PHP’s Memcache extension 2.2.7 are caused by its built‑in 15‑second retry interval (MMC_DEFAULT_RETRY = 15) that marks the connection permanently failed after a poll timeout, and can be resolved by specifying the hidden fourth ‘timeoutms’ parameter, adjusting php.ini, or migrating to the newer Memcached extension.
BackendPHPconnection timeout
0 likes · 6 min read

This comprehensive guide explains cache fundamentals, covering CDN, reverse‑proxy, distributed, and local caches, their design considerations, common pitfalls like consistency, high availability, cache avalanche and penetration, and provides practical architecture examples and mitigation techniques for robust high‑traffic systems.
CDNcache designmemcache
0 likes · 24 min read

The article details how Weibo’s cache infrastructure progressed from simple Memcache deployments to a sophisticated, service‑oriented architecture featuring multi‑layer caching, proxy layers, dynamic configuration, monitoring, and automated scaling to meet massive read‑write demands and high availability requirements.
BackendCacheHigh Availability
0 likes · 19 min read

A telecom CRM project introduced a horizontally scalable Memcache cache layer to store frequently accessed dictionary and customer data, reducing database queries by 30%, improving response times by 15%, and lowering expansion costs while detailing the architecture, access logic changes, high‑availability measures, and real‑world results.
Distributed Cachingbackend architecturememcache
0 likes · 13 min read

With growing traffic, single-server sites struggle, so developers must share user sessions across multiple servers; this article explains three popular approaches—cookie-based, database-based, and Memcache-based session sharing—detailing their principles, advantages, and drawbacks to help choose the right solution.
BackendPHPload balancing
0 likes · 4 min read
