Redis (d) interview questions

memcached and redis difference?

redis support more data structures and support a richer data manipulation

 

 

 

  

redis threading model?

File event handlers

 

 Why single-threaded memcached redis much higher than the efficiency of multi-threaded (Why is single-threaded reids can also support high concurrent)?

  • Store memory operations
  • The core is based on the non-blocking IO multiplexed operation (listen Socket connection, the connection into a queue, not other operations)
  • Instead, to avoid the single-threaded multi-threaded frequent context switching problem
  • One second can handle tens of thousands of pieces of data

 Redis distributed lock and lock ZK difference?

 

Guess you like

Origin www.cnblogs.com/fanBlog/p/12299616.html