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.
用户评价最有帮助的内容: