Silent, don't you want a monthly salary of 35k! I even asked about the redis source code...

Internet interview questions have been updated! Feel free to submit a few, and see if everyone can answer:

(0) Why is redis key and value, and why doesn't it support SQL?

(1) Is redis multi-threaded or single-threaded? (Please go back for the single-threaded answer, why please go back, please read on)

(2) How does the redis persistence enable the restart service under RDB and AOF? (10 people have 9 wrong answers)

(3) How to plan for redis cluster? How is AKF/CAP realized and designed?

(4) How to use redis to store the login status of 100,000 users 365 days a year, and quickly retrieve the active users in any time window?

(5) How many of the five value types of redis have you used, can you give an example?

(6) How to design Redis storage method for 1 million concurrent 4G data and 100,000 concurrent 400G data?

How many questions are really difficult?

Don't underestimate a redis

Any company's recruitment information contains a section of redis requirements.

Don't underestimate a redis

Many articles you can search on the Internet are wrong, and there will be many pitfalls in the interview.

Don't underestimate a redis

Understanding it is your first door to distributed, microservices.

Don't underestimate a redis

Today, I will talk about Redis interview questions and prepare for the Golden Fourth Silver Five interview.

Because there are too many details, only some of the knowledge points are screenshots for a rough introduction, and each small node has more detailed content! If you need to get this [ redis70 interview question analysis ] document, please forward it and then follow my private message and reply to the " interview question" to get the method!

Silent, don't you want a monthly salary of 35k!  I even asked about the redis source code...

 

One, Redis concept understanding

1. What is Redis?

2. What are the characteristics of Redis?

3. What are the differences between Memcache and Redis?

4. What are the advantages of Redis over Memcached

5. How to implement local caching? Please describe the way you know

6. What is the Redis communication protocol? What are its characteristics?

Silent, don't you want a monthly salary of 35k!  I even asked about the redis source code...

 

Two, Redis data structure and instructions

1. Data types supported by Redis

2. What are the commonly used commands in Redis?

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

4. What is the maximum storage capacity of each data type in Redis?

5. Please introduce the Redis data type SortedSet (zset) and the underlying implementation mechanism?

6. What are the Redis transaction related commands?

7. What is a Redis transaction? What is the principle?

8. What are the points to note about Redis transactions?

9. Why doesn't Redis support rollback?

10. Please introduce Redis's Pipeline (pipeline) and usage scenarios

11.Please explain the difference between Redis batch commands and Pipeline?

12. Please introduce Redis's publish and subscribe function

13. What are the characteristics of Redis's linked list data structure?

14. Please introduce the underlying implementation of Redis's String type?

15. What are the benefits of using SSD for Redis String type?

16.What are the commands for setting the lifetime and expiration time of the key?

Silent, don't you want a monthly salary of 35k!  I even asked about the redis source code...

 

Three, Redis high concurrency processing strategy

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

2. Is Redis single threaded?

3. Why is Redis designed to be single-threaded?

4. What is cache penetration? How to solve it?

5. What is a cache avalanche? How to solve it?

6. How many cache update strategies are there? What are the precautions for each?

7. Please introduce several reasons that may cause Redis blocking

8. How to find abnormal blocking of Redis?

Silent, don't you want a monthly salary of 35k!  I even asked about the redis source code...

 

Fourth, Redis cluster structure and design concept

1. What are the Redis cluster architecture modes?

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

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

4. Please introduce the Redis cluster implementation scheme

5. Will there be write operations lost in the Redis cluster? Why?

6. What is Redis slow query? Through what configuration?

7. What are the Redis slow query repair experience? How to fix it?

8. How to optimize the performance of Redis service?

9. What are the advantages and disadvantages of Redis's master-slave replication model?

10.What are the advantages and disadvantages of Redis sentinel mode?

11. How to set the maximum number of connections for Redis? View the maximum number of connections for Redis? View the current Redis

12. Introduce some common security settings for Redis?

Silent, don't you want a monthly salary of 35k!  I even asked about the redis source code...

 

Five, Redis cache management and persistence mechanism

1. What are the Redis persistence mechanisms?

2. What is the difference between Redis persistence mechanism AOF and RDB?

3. Please introduce the advantages and disadvantages of RDB persistence mechanism

4. Please introduce the advantages and disadvantages of AOF persistence mechanism

5. If the data in the AOF file is abnormal, how does the Redis service handle it?

6. What are the common Haitai algorithms?

7. What are the Redis elimination strategies?

8. What are the Redis cache invalidation strategies?

9. How does Redis optimize memory?

10. What is bigkey? What is the impact?

11.How to find bigkey?

12. What are the classifications of Redis memory consumption? What commands are used for memory statistics?

13. Briefly introduce the memory management methods of Redis?

14. How to set the memory limit of Redis? What is the effect?

15. What should I do if Redis reports insufficient memory?

Silent, don't you want a monthly salary of 35k!  I even asked about the redis source code...

 

Six, Redis application scenario design

1. What are the applicable scenarios for Redis?

2. What are the commonly used business scenarios for Redis?

3. What are the Java clients supported by Redis? Briefly explain the characteristics.

4. Please briefly describe the basic usage of Jedis? '

5. What are the advantages of Jedis connection pool link method?

6. What is a distributed lock? What does it do?

7. What can be achieved by distributed locks?

8. Introduce the matters needing attention in the implementation of distributed locks?

9. How does Redis implement distributed locks?

10. What does the cache hit rate mean?

11.How to improve the cache hit rate?

12. Please introduce Spring annotation caching

Silent, don't you want a monthly salary of 35k!  I even asked about the redis source code...

 

If you need to get this [ redis70 interview question analysis ] document, please forward it and then follow my private message and reply to the " interview question" to get the method!

Guess you like

Origin blog.csdn.net/qq_45401061/article/details/108761997