Memcached 面接の質問と回答
質問 21. How does Memcached handle network partitions?
Memcached does not handle network partitions by default. Developers need to implement their own mechanisms, such as sharding and replication, to address network partition issues.
質問 22. Explain Memcached UDP support.
Memcached supports UDP (User Datagram Protocol) for fast and lightweight data transfer. It is often used for non-critical operations like cache updates.
質問 23. What is Memcached key hashing?
Memcached uses a consistent hashing algorithm to determine the server responsible for a particular key. This ensures even distribution of keys across multiple servers.
質問 24. How can you handle cache stampede in Memcached?
Cache stampede can be mitigated using techniques like setting short expiration times, implementing mutexes, or using lazy loading to refresh the cache.
質問 25. Explain Memcached slab growth factor.
The slab growth factor in Memcached determines how much the memory allocation size should grow when the existing slabs are full. It helps in efficient memory management.
ユーザー評価で最も役立つ内容: