(Transfer + Share) The most complete Redis interview questions

1. What is Redis?


2. What are the advantages of Redis over memcached?

3. Which data types does Redis support?

4. What physical resources does Redis consume?

5. What is the full name of Redis?

6. What kinds of data elimination strategies does Redis have?

7. Why doesn't Redis officially provide a Windows version?

8. What is the maximum storage capacity for a string type value?

9. Why does Redis need to put all data in memory?

10. What should the Redis cluster solution do? What are the options?

11. Under what circumstances will the Redis cluster solution cause the entire cluster to be unavailable?

12. There are 2000w data in MySQL and only 20w data in redis. How to ensure that the data in redis are all hot data?

13. What are the suitable scenarios for Redis?

14. What are the Java clients supported by Redis? Which one is the official recommendation?

15. What is the relationship between Redis and Redisson?

16. What are the advantages and disadvantages of Jedis and Redisson?

17. How to set password and verify password for Redis?

18. Tell me about the concept of Redis hash slot?

19. What is the master-slave replication model of Redis cluster?

20. Will there be write operation loss in Redis cluster? why?

21. How are Redis clusters replicated?

22. What is the maximum number of nodes in a Redis cluster?

23. How to choose a database for Redis cluster?

24. How to test the connectivity of Redis?

25. What is the use of pipelines in Redis?

26. How to understand Redis transaction?

27. What are the commands related to Redis transactions?

28. How to set the expiration time and permanent validity of Redis key?

29. How does Redis optimize memory?

30. How does the Redis recycling process work?

31. What algorithm does Redis use for recycling?

32. How does Redis do a large amount of data insertion?

33. Why do Redis partitions?

34. Do you know what Redis partitioning schemes are there?

35. What are the disadvantages of Redis partitioning?

36. How to expand Redis persistent data and cache?

37. Should distributed Redis be done in the early stage or at the later stage? why?

38. What is Twemproxy?

39. What are the clients that support consistent hashing?

40. What is the difference between Redis and other key-value stores?

41. What is the memory usage of Redis?

42. Are there any ways to reduce the memory usage of Redis?

43. What command is used to view Redis usage and status information?

44. What happens when Redis's memory runs out?

45. Redis is single-threaded, how to improve the utilization of multi-core CPU?

46. ​​How many keys can a Redis instance store at most? How many elements can be stored in List, Set, Sorted Set?

47. Common Redis performance problems and solutions?

48. What kinds of persistence methods does Redis provide?

49. How to choose a suitable persistence method?

50. Will the modification of the configuration take effect in real time without restarting Redis?

 

Guess you like

Origin blog.csdn.net/qq_31653405/article/details/114661866